aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-sip.c12
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);
}
/**