gnome-settings-daemon r509 - in trunk: . plugins/xsettings
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-settings-daemon r509 - in trunk: . plugins/xsettings
- Date: Fri, 12 Sep 2008 19:21:57 +0000 (UTC)
Author: jensg
Date: Fri Sep 12 19:21:56 2008
New Revision: 509
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=509&view=rev
Log:
2008-09-12 Jens Granseuer <jensgr gmx net>
Also allow linking the module state to other boolean keys by using a
string value that is the name of the key to use. Note that in this
case the state won't be updated at runtime due to GConf limitations.
* plugins/xsettings/gsd-xsettings-manager.c: (get_gtk_modules):
enable linking to other keys
Modified:
trunk/ChangeLog
trunk/plugins/xsettings/gsd-xsettings-manager.c
Modified: trunk/plugins/xsettings/gsd-xsettings-manager.c
==============================================================================
--- trunk/plugins/xsettings/gsd-xsettings-manager.c (original)
+++ trunk/plugins/xsettings/gsd-xsettings-manager.c Fri Sep 12 19:21:56 2008
@@ -676,11 +676,11 @@
/* simple enabled/disabled */
enabled = gconf_value_get_bool (v);
break;
-/* it would be good to have this, but unfortunately, due to limitations
- * in GConf (or the client libraries, anyway), it is currently impossible
- * to monitor arbitrary keys for changes, and without monitoring and
- * live-updating, linking to another key doesn't make a lot of sense. */
-#if 0
+
+ /* due to limitations in GConf (or the client libraries,
+ * anyway), it is currently impossible to monitor
+ * arbitrary keys for changes, so these won't update at
+ * runtime */
case GCONF_VALUE_STRING:
/* linked to another GConf key of type bool */
key = gconf_value_get_string (v);
@@ -688,7 +688,7 @@
enabled = gconf_client_get_bool (client, key, NULL);
}
break;
-#endif
+
default:
g_warning ("GConf entry %s has invalid type %s",
gconf_entry_get_key (e), type_to_string (v->type));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]