remove double gconf value setting. Closes bug #334331.
2006-03-12 Luca Cavalli <loopback@slackit.org> * gnome-da-capplet.c: (terminal_checkbutton_toggled_cb): remove double gconf value setting. Closes bug #334331.
This commit is contained in:
parent
35c0a81900
commit
6366609a2a
2 changed files with 6 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-03-12 Luca Cavalli <loopback@slackit.org>
|
||||
|
||||
* gnome-da-capplet.c: (terminal_checkbutton_toggled_cb): remove
|
||||
double gconf value setting. Closes bug #334331.
|
||||
|
||||
2006-03-06 Luca Cavalli <loopback@slackit.org>
|
||||
|
||||
* gnome-da-capplet.c: (web_combo_changed_cb),
|
||||
|
|
|
@ -101,21 +101,12 @@ static void
|
|||
terminal_checkbutton_toggled_cb (GtkToggleButton *togglebutton, GnomeDACapplet *capplet)
|
||||
{
|
||||
gboolean is_active;
|
||||
GConfChangeSet *cs;
|
||||
GError *error = NULL;
|
||||
|
||||
is_active = gtk_toggle_button_get_active (togglebutton);
|
||||
|
||||
if (GTK_WIDGET (togglebutton) == capplet->web_browser_terminal_checkbutton) {
|
||||
cs = gconf_change_set_new ();
|
||||
|
||||
gconf_change_set_set_bool (cs, DEFAULT_APPS_KEY_HTTP_NEEDS_TERM, is_active);
|
||||
gconf_change_set_set_bool (cs, DEFAULT_APPS_KEY_HTTPS_NEEDS_TERM, is_active);
|
||||
gconf_change_set_set_bool (cs, DEFAULT_APPS_KEY_UNKNOWN_NEEDS_TERM, is_active);
|
||||
gconf_change_set_set_bool (cs, DEFAULT_APPS_KEY_ABOUT_NEEDS_TERM, is_active);
|
||||
|
||||
gconf_client_commit_change_set (capplet->gconf, cs, TRUE, &error);
|
||||
gconf_change_set_unref (cs);
|
||||
gconf_client_set_bool (capplet->gconf, DEFAULT_APPS_KEY_HTTP_NEEDS_TERM, is_active, &error);
|
||||
}
|
||||
else if (GTK_WIDGET (togglebutton) == capplet->mail_reader_terminal_checkbutton) {
|
||||
gconf_client_set_bool (capplet->gconf, DEFAULT_APPS_KEY_MAILER_NEEDS_TERM, is_active, &error);
|
||||
|
|
Loading…
Add table
Reference in a new issue