totem r5650 - in branches/gnome-2-24: . src/plugins



Author: hadess
Date: Sun Sep  7 23:17:29 2008
New Revision: 5650
URL: http://svn.gnome.org/viewvc/totem?rev=5650&view=rev

Log:
2008-09-08  Bastien Nocera  <hadess hadess net>

	* src/plugins/totem-plugins-engine.c
	(totem_plugins_engine_activate_plugin): Don't ever disable
	an invisible plugin



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/plugins/totem-plugins-engine.c

Modified: branches/gnome-2-24/src/plugins/totem-plugins-engine.c
==============================================================================
--- branches/gnome-2-24/src/plugins/totem-plugins-engine.c	(original)
+++ branches/gnome-2-24/src/plugins/totem-plugins-engine.c	Sun Sep  7 23:17:29 2008
@@ -552,7 +552,7 @@
 gboolean
 totem_plugins_engine_activate_plugin (TotemPluginInfo *info)
 {
-	char *msg, *key_name;
+	char *msg;
 	GError *error = NULL;
 	gboolean ret;
 
@@ -562,9 +562,13 @@
 		return TRUE;
 
 	ret = totem_plugins_engine_activate_plugin_real (info, totem_plugins_object, &error);
-	key_name = g_strdup_printf (GCONF_PLUGIN_ACTIVE, info->location);
-	gconf_client_set_bool (client, key_name, ret, NULL);
-	g_free (key_name);
+	if (info->visible != FALSE || ret != FALSE) {
+		char *key_name;
+
+		key_name = g_strdup_printf (GCONF_PLUGIN_ACTIVE, info->location);
+		gconf_client_set_bool (client, key_name, ret, NULL);
+		g_free (key_name);
+	}
 
 	info->active = ret;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]