use proper GConf notification instead of hand-picking the correct signal

2007-05-02  Jens Granseuer  <jensgr@gmx.net>

	* appearance-ui.c: (toolbar_detachable_cb), (ui_init): use proper
	GConf notification instead of hand-picking the correct signal for
	detachable toolbar

svn path=/trunk/; revision=7541
This commit is contained in:
Jens Granseuer 2007-05-02 18:22:42 +00:00 committed by Jens Granseuer
parent 28787c51a2
commit c556b06ce7
2 changed files with 15 additions and 9 deletions

View file

@ -1,3 +1,9 @@
2007-05-02 Jens Granseuer <jensgr@gmx.net>
* appearance-ui.c: (toolbar_detachable_cb), (ui_init): use proper
GConf notification instead of hand-picking the correct signal for
detachable toolbar
2007-05-02 Denis Washington <denisw@svn.gnome.org>
* Makefile.am: fizz says: don't indent with spaces in Makefile.am.
@ -30,7 +36,7 @@
2007-05-01 Jens Granseuer <jensgr@gmx.net>
* appearance-ui.c: (ui_init):
* appearance.glade: convert all instances GtkOptionMenu to
* appearance.glade: convert all instances of GtkOptionMenu to
GtkComboBox
2007-05-01 Jens Granseuer <jensgr@gmx.net>

View file

@ -162,14 +162,12 @@ menus_have_icons_cb (GConfPropertyEditor *peditor,
}
static void
toolbar_detachable_cb (GConfClient *client,
const gchar *key,
GConfValue *value,
toolbar_detachable_cb (GConfClient *client,
guint id,
GConfEntry *entry,
AppearanceData *data)
{
if (key != NULL &&
strcmp (key, "/desktop/gnome/interface/toolbar_detachable") == 0)
show_handlebar (data, gconf_value_get_bool (value));
show_handlebar (data, gconf_value_get_bool (entry->value));
}
/** GUI Callbacks **/
@ -234,6 +232,8 @@ ui_init (AppearanceData *data)
g_free (toolbar_style);
/* no ui for detachable toolbars */
g_signal_connect (G_OBJECT (data->client), "value_changed",
G_CALLBACK (toolbar_detachable_cb), data);
gconf_client_notify_add (data->client,
"/desktop/gnome/interface/toolbar_detachable",
(GConfClientNotifyFunc) toolbar_detachable_cb,
data, NULL, NULL);
}