From 4679f53f051665acb601de4516eb7d7f9e173f44 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 17 Nov 2009 11:26:01 +0000 Subject: account-widget-sip: unsensitive the STUN labels as well when STUN is disabled --- libempathy-gtk/empathy-account-widget-sip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libempathy-gtk/empathy-account-widget-sip.c b/libempathy-gtk/empathy-account-widget-sip.c index ab839eb68..d3d2198f7 100644 --- a/libempathy-gtk/empathy-account-widget-sip.c +++ b/libempathy-gtk/empathy-account-widget-sip.c @@ -40,7 +40,9 @@ typedef struct { EmpathyAccountWidget *self; GtkWidget *vbox_settings; + GtkWidget *label_stun_server; GtkWidget *entry_stun_server; + GtkWidget *label_stun_port; GtkWidget *spinbutton_stun_part; GtkWidget *checkbutton_discover_stun; GtkWidget *combobox_transport; @@ -63,7 +65,9 @@ account_widget_sip_discover_stun_toggled_cb ( gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (checkbox)); + gtk_widget_set_sensitive (settings->label_stun_server, !active); gtk_widget_set_sensitive (settings->entry_stun_server, !active); + gtk_widget_set_sensitive (settings->label_stun_port, !active); gtk_widget_set_sensitive (settings->spinbutton_stun_part, !active); } @@ -127,7 +131,9 @@ empathy_account_widget_sip_build (EmpathyAccountWidget *self, "table_common_settings", table_common_settings, "table_advanced_sip_settings", &table_advanced, "vbox_sip_settings", &vbox_settings, + "label_stun-server", &settings->label_stun_server, "entry_stun-server", &settings->entry_stun_server, + "label_stun-port", &settings->label_stun_port, "spinbutton_stun-port", &settings->spinbutton_stun_part, "checkbutton_discover-stun", &settings->checkbutton_discover_stun, "spinbutton_keepalive-interval", -- cgit v1.2.3