[Xfce4-commits] [apps/xfdashboard] 03/03: Set check flag for each plugin enabled when initializing plugins tab in settings application

noreply at xfce.org noreply at xfce.org
Thu Feb 18 16:16:29 CET 2016


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 144d09d511736480f26fc3f3e15ce9a59da482eb
Author: Stephan Haller <nomad at froevel.de>
Date:   Thu Feb 18 16:15:53 2016 +0100

    Set check flag for each plugin enabled when initializing plugins tab in settings application
---
 settings/plugins.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/settings/plugins.c b/settings/plugins.c
index fc0dbc1..bb93345 100644
--- a/settings/plugins.c
+++ b/settings/plugins.c
@@ -286,7 +286,9 @@ static void _xfdashboard_settings_plugins_enabled_plugins_changed_by_widget(Xfda
 			enabledPluginsList[i]=g_strdup(g_ptr_array_index(enabledPlugins, i));
 		}
 
-		success=xfconf_channel_set_string_list(priv->xfconfChannel, ENABLED_PLUGINS_XFCONF_PROP, enabledPluginsList);
+		success=xfconf_channel_set_string_list(priv->xfconfChannel,
+												ENABLED_PLUGINS_XFCONF_PROP,
+												(const gchar * const*)enabledPluginsList);
 		if(!success) g_critical(_("Could not set list of enabled plugins!"));
 
 		/* Release allocated resources */
@@ -313,7 +315,6 @@ static void _xfdashboard_settings_plugins_enabled_plugins_changed_by_xfconf(Xfda
 	GtkTreeIter								modelIter;
 
 	g_return_if_fail(XFDASHBOARD_IS_SETTINGS_PLUGINS(self));
-	g_return_if_fail(inValue);
 	g_return_if_fail(XFCONF_IS_CHANNEL(inChannel));
 
 	priv=self->priv;
@@ -726,11 +727,10 @@ static void _xfdashboard_settings_plugins_set_builder(XfdashboardSettingsPlugins
 		_xfdashboard_settings_plugins_populate_plugins_list(self, priv->widgetPlugins);
 
 		/* Check enabled plugins */
-		// TODO: _xfdashboard_settings_plugins_enabled_plugins_changed_by_xfconf(self,
-																		// TODO: ENABLED_PLUGINS_XFCONF_PROP,
-																		// TODO: &defaultValue,
-																		// TODO: priv->xfconfChannel);
-		// TODO: _xfdashboard_settings_plugins_enabled_plugins_changed_by_widget(self, selection);
+		_xfdashboard_settings_plugins_enabled_plugins_changed_by_xfconf(self,
+																		ENABLED_PLUGINS_XFCONF_PROP,
+																		NULL,
+																		priv->xfconfChannel);
 
 		/* Connect signals */
 		g_signal_connect_swapped(selection,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list