aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-02-27 07:13:36 +0800
committerTravis Reitter <treitter@gmail.com>2010-02-27 09:03:21 +0800
commit74be0ae5e7a1c1fe845a056cd38977c649e0989a (patch)
tree952e10d0f61b417f9fe466116b6c684ba1981caf /src
parentd5ae581b39fd3532e8a8e90d383164039b2fafc7 (diff)
downloadgsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.tar
gsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.tar.gz
gsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.tar.bz2
gsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.tar.lz
gsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.tar.xz
gsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.tar.zst
gsoc2013-empathy-74be0ae5e7a1c1fe845a056cd38977c649e0989a.zip
When we're creating our first account, don't let the remove button become sensitive when we change the account protocol
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 65019142e..8ae8450e8 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1236,6 +1236,7 @@ accounts_dialog_model_selection_changed (GtkTreeSelection *selection,
GtkTreeModel *model;
GtkTreeIter iter;
gboolean is_selection;
+ gboolean creating = FALSE;
is_selection = gtk_tree_selection_get_selected (selection, &model, &iter);
@@ -1245,8 +1246,14 @@ accounts_dialog_model_selection_changed (GtkTreeSelection *selection,
if (settings != NULL)
g_object_unref (settings);
+ if (priv->setting_widget_object != NULL)
+ {
+ g_object_get (priv->setting_widget_object,
+ "creating-account", &creating, NULL);
+ }
+
/* Update remove button sensitivity */
- gtk_widget_set_sensitive (priv->button_remove, is_selection);
+ gtk_widget_set_sensitive (priv->button_remove, is_selection && !creating);
}
static void