aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget-sip.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-17 19:26:01 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-23 23:06:37 +0800
commit4679f53f051665acb601de4516eb7d7f9e173f44 (patch)
tree1cecd5a69bde82eab4428c00da5acf13e9f4bd61 /libempathy-gtk/empathy-account-widget-sip.c
parent76ece46082b1a487acca4abea728c296b586824e (diff)
downloadgsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.tar
gsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.tar.gz
gsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.tar.bz2
gsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.tar.lz
gsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.tar.xz
gsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.tar.zst
gsoc2013-empathy-4679f53f051665acb601de4516eb7d7f9e173f44.zip
account-widget-sip: unsensitive the STUN labels as well when STUN is disabled
Diffstat (limited to 'libempathy-gtk/empathy-account-widget-sip.c')
-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",