]> Dogcows Code - chaz/openbox/commitdiff
demand load plugins from the menu
authorScott Moynes <smoynes@nexus.carleton.ca>
Mon, 28 Jul 2003 03:41:28 +0000 (03:41 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Mon, 28 Jul 2003 03:41:28 +0000 (03:41 +0000)
openbox/menu.c

index 03bca026d6e23569e955ae6e405ba8687fc9dfcd..fe8d0de6cc73471df7344782f460ea925eeaa8fc 100644 (file)
@@ -45,7 +45,9 @@ void parse_menu_full(xmlDocPtr doc, xmlNodePtr node, void *data,
             data.doc = doc;
             data.node = node;
             data.parent = menu;
-            parent = plugin_create(plugin, &data);
+
+            if (plugin_open_full(plugin, TRUE))
+                parent = plugin_create(plugin, &data);
             g_free(plugin);
         } else
             menu = menu_new(title, id, data ? *((ObMenu**)data) : NULL);
@@ -65,7 +67,8 @@ void parse_menu_full(xmlDocPtr doc, xmlNodePtr node, void *data,
                 data.doc = doc;
                 data.node = node;
                 data.parent = menu;
-                parent = plugin_create(plugin, &data);
+                if (plugin_open_full(plugin, TRUE))
+                    parent = plugin_create(plugin, &data);
                 g_free(plugin);
             } else {
                 parent = menu;
This page took 0.025036 seconds and 4 git commands to generate.