aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-02-11 04:25:53 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-02-11 04:25:53 +0800
commit42c044086dfafd4ca8ec21d5248505bee39261cd (patch)
tree70bcc56e89280c11c0ac2ff1c4885c20a259ee01
parent152a080763af746dca107497730583c9f75b71c9 (diff)
downloadgsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.tar
gsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.tar.gz
gsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.tar.bz2
gsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.tar.lz
gsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.tar.xz
gsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.tar.zst
gsoc2013-empathy-42c044086dfafd4ca8ec21d5248505bee39261cd.zip
Fix a bug when unset port
svn path=/trunk/; revision=623
-rw-r--r--libempathy-gtk/empathy-account-widget.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 3cb5e00ea..f161a6788 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -77,15 +77,13 @@ account_widget_int_changed_cb (GtkWidget *widget,
param_name = g_object_get_data (G_OBJECT (widget), "param_name");
if (value == 0) {
- gint val;
-
mc_account_unset_param (account, param_name);
- mc_account_get_param_int (account, param_name, &val);
- empathy_debug (DEBUG_DOMAIN, "Unset %s and restore to %d", param_name, val);
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), val);
+ mc_account_get_param_int (account, param_name, &value);
+ empathy_debug (DEBUG_DOMAIN, "Unset %s and restore to %d", param_name, value);
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), value);
} else {
empathy_debug (DEBUG_DOMAIN, "Setting %s to %d", param_name, value);
- mc_account_set_param_int (account, param_name, (gint) value);
+ mc_account_set_param_int (account, param_name, value);
}
}