[empathy] account-widget-sip: unsensitive the STUN labels as well when STUN is disabled
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] account-widget-sip: unsensitive the STUN labels as well when STUN is disabled
- Date: Mon, 23 Nov 2009 15:17:21 +0000 (UTC)
commit 4679f53f051665acb601de4516eb7d7f9e173f44
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Nov 17 11:26:01 2009 +0000
account-widget-sip: unsensitive the STUN labels as well when STUN is disabled
libempathy-gtk/empathy-account-widget-sip.c | 6 ++++++
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 ab839eb..d3d2198 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]