Fix the https handler never being set (Closes: #568408)

2009-01-20  Bastien Nocera  <hadess@hadess.net>

	* gnome-da-capplet.c (web_radiobutton_toggled_cb),
	(web_combo_changed_cb), (web_combo_conv_to_widget): Fix the https
	handler never being set (Closes: #568408)


svn path=/trunk/; revision=9202
This commit is contained in:
Bastien Nocera 2009-01-20 19:46:22 +00:00 committed by Bastien Nocera
parent 5444fb3b7a
commit 4b1422710e
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2009-01-20 Bastien Nocera <hadess@hadess.net>
* gnome-da-capplet.c (web_radiobutton_toggled_cb),
(web_combo_changed_cb), (web_combo_conv_to_widget): Fix the https
handler never being set (Closes: #568408)
==================== 2.25.3 ==================== ==================== 2.25.3 ====================
==================== 2.25.2 ==================== ==================== 2.25.2 ====================
==================== 2.25.1 ==================== ==================== 2.25.1 ====================

View file

@ -90,6 +90,8 @@ web_radiobutton_toggled_cb (GtkWidget *togglebutton, GnomeDACapplet *capplet)
gconf_client_set_string (capplet->gconf, DEFAULT_APPS_KEY_HTTP_EXEC, command, &error); gconf_client_set_string (capplet->gconf, DEFAULT_APPS_KEY_HTTP_EXEC, command, &error);
gtk_entry_set_text (GTK_ENTRY (capplet->web_browser_command_entry), command);
if (error != NULL) { if (error != NULL) {
g_warning (_("Error saving configuration: %s"), error->message); g_warning (_("Error saving configuration: %s"), error->message);
g_error_free (error); g_error_free (error);
@ -124,6 +126,8 @@ web_combo_changed_cb (GtkComboBox *combo, GnomeDACapplet *capplet)
gtk_widget_set_sensitive (capplet->web_browser_command_entry, is_custom_active); gtk_widget_set_sensitive (capplet->web_browser_command_entry, is_custom_active);
gtk_widget_set_sensitive (capplet->web_browser_command_label, is_custom_active); gtk_widget_set_sensitive (capplet->web_browser_command_label, is_custom_active);
gtk_widget_set_sensitive (capplet->web_browser_terminal_checkbutton, is_custom_active); gtk_widget_set_sensitive (capplet->web_browser_terminal_checkbutton, is_custom_active);
web_radiobutton_toggled_cb (NULL, capplet);
} }
/* FIXME: Refactor these two functions below into one... */ /* FIXME: Refactor these two functions below into one... */
@ -450,6 +454,7 @@ web_combo_conv_to_widget (GConfPropertyEditor *peditor, const GConfValue *value)
ret = gconf_value_new (GCONF_VALUE_INT); ret = gconf_value_new (GCONF_VALUE_INT);
gconf_value_set_int (ret, index); gconf_value_set_int (ret, index);
return ret; return ret;
} }