]>
Dogcows Code - chaz/openbox/blob - include_menu.c
2335f9e0e0a143b72364b1c1f9ddae7554a56fe3
12 #include "kernel/menu.h"
13 #include "kernel/timer.h"
14 #include "kernel/action.h"
15 #include "kernel/event.h"
17 static char *PLUGIN_NAME
= "include_menu";
19 void plugin_setup_config() { }
22 void plugin_shutdown() { }
24 void include_menu_clean_up(ObMenu
*m
) { }
26 void *plugin_create(PluginMenuCreateData
*data
)
34 parse_attr_string("id", data
->node
, &id
);
35 parse_attr_string("label", data
->node
, &label
);
37 m
= menu_new( (label
!= NULL
? label
: ""),
38 (id
!= NULL
? id
: PLUGIN_NAME
),
41 m
->plugin
= PLUGIN_NAME
;
43 parse_attr_string("filename", data
->node
, &filename
);
45 doc
= xmlParseFile(filename
);
47 xmlNodePtr node
= xmlDocGetRootElement(doc
);
49 parse_menu_full(doc
, node
, m
, FALSE
);
55 menu_add_entry(data
->parent
, menu_entry_new_submenu(
56 (label
!= NULL
? label
: ""),
62 void plugin_destroy (void *m
)
64 include_menu_clean_up(m
);
This page took 0.035976 seconds and 3 git commands to generate.