aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-account-widget-sip.c6
1 files changed, 6 insertions, 0 deletions
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",