gnome-control-center r9217 - trunk/capplets/default-applications
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r9217 - trunk/capplets/default-applications
- Date: Wed, 28 Jan 2009 18:12:26 +0000 (UTC)
Author: jensg
Date: Wed Jan 28 18:12:26 2009
New Revision: 9217
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9217&view=rev
Log:
2009-01-28 Jens Granseuer <jensgr gmx net>
* gnome-da-capplet.c: (web_combo_changed_cb): update the entry with
the correct command for the selected option instead of always using
the default
Modified:
trunk/capplets/default-applications/ChangeLog
trunk/capplets/default-applications/gnome-da-capplet.c
Modified: trunk/capplets/default-applications/gnome-da-capplet.c
==============================================================================
--- trunk/capplets/default-applications/gnome-da-capplet.c (original)
+++ trunk/capplets/default-applications/gnome-da-capplet.c Wed Jan 28 18:12:26 2009
@@ -105,6 +105,7 @@
gboolean is_custom_active;
gboolean has_net_remote;
GnomeDAWebItem *item;
+ GtkWidget *active = NULL;
current_index = gtk_combo_box_get_active (combo);
@@ -127,7 +128,17 @@
gtk_widget_set_sensitive (capplet->web_browser_command_label, is_custom_active);
gtk_widget_set_sensitive (capplet->web_browser_terminal_checkbutton, is_custom_active);
- web_radiobutton_toggled_cb (NULL, capplet);
+ if (has_net_remote) {
+
+ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (capplet->new_win_radiobutton)))
+ active = capplet->new_win_radiobutton;
+ else if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (capplet->new_tab_radiobutton)))
+ active = capplet->new_tab_radiobutton;
+ else
+ active = capplet->default_radiobutton;
+ }
+
+ web_radiobutton_toggled_cb (active, capplet);
}
/* FIXME: Refactor these two functions below into one... */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]