diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-16 16:35:03 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-16 16:35:03 +0800 |
commit | aced378e7a74252e006495a6f219034b93f4db0b (patch) | |
tree | 179513c571340566cf09a93361b86893108deb85 | |
parent | 957b69447aa3777cb224a95f3292412946cb3acc (diff) | |
download | gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.tar gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.tar.gz gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.tar.bz2 gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.tar.lz gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.tar.xz gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.tar.zst gsoc2013-empathy-aced378e7a74252e006495a6f219034b93f4db0b.zip |
stun-server and stun-port sensibility is the opposit: They are sensitive if discover-stun is disabled.
svn path=/trunk/; revision=951
-rw-r--r-- | libempathy-gtk/empathy-account-widget-sip.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-account-widget-sip.c b/libempathy-gtk/empathy-account-widget-sip.c index ed22f8c39..d07abc0c0 100644 --- a/libempathy-gtk/empathy-account-widget-sip.c +++ b/libempathy-gtk/empathy-account-widget-sip.c @@ -64,13 +64,11 @@ account_widget_sip_discover_stun_toggled_cb ( GtkWidget *checkbox, EmpathyAccountWidgetSip *settings) { - if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbox))) { - gtk_widget_set_sensitive(settings->entry_stun_server, TRUE); - gtk_widget_set_sensitive(settings->spinbutton_stun_part, TRUE); - } else { - gtk_widget_set_sensitive(settings->entry_stun_server, FALSE); - gtk_widget_set_sensitive(settings->spinbutton_stun_part, FALSE); - } + gboolean active; + + active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (checkbox)); + gtk_widget_set_sensitive(settings->entry_stun_server, !active); + gtk_widget_set_sensitive(settings->spinbutton_stun_part, !active); } /** |