[Xfce4-commits] <xfce4-panel:devel> Get the force-all-external property from the hash table too.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:34:28 CEST 2009
Updating branch refs/heads/devel
to 9d9c2546378a0f3c79ee232cb040f5cbadc0ee47 (commit)
from 252bf3654b5334baa6f600231ec2ceca7b9c7df0 (commit)
commit 9d9c2546378a0f3c79ee232cb040f5cbadc0ee47
Author: Nick Schermer <nick at xfce.org>
Date: Mon Jun 1 01:29:19 2009 +0200
Get the force-all-external property from the hash table too.
panel/panel-application.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/panel/panel-application.c b/panel/panel-application.c
index 2e65b62..e9d1e81 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -185,10 +185,6 @@ panel_application_init (PanelApplication *application)
/* get the xfconf channel */
application->xfconf = xfconf_channel_new ("xfce4-panel");
- /* check if we need to force all plugins to run external */
- if (xfconf_channel_get_bool (application->xfconf, "/force-all-external", FALSE))
- panel_module_factory_force_all_external ();
-
/* get a factory reference so it never unloads */
application->factory = panel_module_factory_get ();
@@ -299,6 +295,11 @@ panel_application_load (PanelApplication *application)
if (G_UNLIKELY (hash_table == NULL))
return;
+ /* check if we need to force all plugins to run external */
+ value = g_hash_table_lookup (hash_table, "/force-all-external");
+ if (value != NULL && g_value_get_boolean (value))
+ panel_module_factory_force_all_external ();
+
/* set the shared hash table */
panel_properties_shared_hash_table (hash_table);
More information about the Xfce4-commits
mailing list