From 73374510cc2853755568996480bbf2357f93125e Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Mon, 28 Jul 2003 03:41:28 +0000 Subject: [PATCH] demand load plugins from the menu --- openbox/menu.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openbox/menu.c b/openbox/menu.c index 03bca026..fe8d0de6 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -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; -- 2.45.2