aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-08-12 05:34:48 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-08-12 05:34:48 +0800
commitc68e95e2333aa078db01dedcf5eb1d031c888d45 (patch)
tree6e62e79609306d66c6afbfe4ef8939e0d076e9bc
parent21362f908f6068a7c8965ef58a4a28ee7bb000b6 (diff)
downloadgsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.tar
gsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.tar.gz
gsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.tar.bz2
gsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.tar.lz
gsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.tar.xz
gsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.tar.zst
gsoc2013-empathy-c68e95e2333aa078db01dedcf5eb1d031c888d45.zip
Make "Add account" button insensitive when we are creating one. Fixes bug
2007-08-11 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-accounts-dialog.c: Make "Add account" button insensitive when we are creating one. Fixes bug #459170 (Jaap A. Haitsma). svn path=/trunk/; revision=249
-rw-r--r--ChangeLog6
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 74c616efd..69323ce46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-08-11 Xavier Claessens <xclaesse@gmail.com>
+ * libempathy-gtk/empathy-accounts-dialog.c: Make "Add account" button
+ insensitive when we are creating one. Fixes bug #459170
+ (Jaap A. Haitsma).
+
+2007-08-11 Xavier Claessens <xclaesse@gmail.com>
+
* libempathy/empathy-tp-contact-list.c: s/Local Network/People nearby/
(Sjoerd Simons)
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c
index 3be77f447..2a12eb1d5 100644
--- a/libempathy-gtk/empathy-accounts-dialog.c
+++ b/libempathy-gtk/empathy-accounts-dialog.c
@@ -65,6 +65,7 @@ typedef struct {
GtkWidget *treeview;
+ GtkWidget *button_add;
GtkWidget *button_remove;
GtkWidget *button_connect;
@@ -568,6 +569,7 @@ accounts_dialog_model_selection_changed (GtkTreeSelection *selection,
is_selection = gtk_tree_selection_get_selected (selection, &model, &iter);
+ gtk_widget_set_sensitive (dialog->button_add, TRUE);
gtk_widget_set_sensitive (dialog->button_remove, is_selection);
gtk_widget_set_sensitive (dialog->button_connect, is_selection);
@@ -817,6 +819,8 @@ accounts_dialog_button_back_clicked_cb (GtkWidget *button,
gtk_widget_hide (dialog->frame_no_account);
gtk_widget_hide (dialog->frame_new_account);
+ gtk_widget_set_sensitive (dialog->button_add, TRUE);
+
account = accounts_dialog_model_get_selected (dialog);
accounts_dialog_update_account (dialog, account);
}
@@ -847,6 +851,7 @@ accounts_dialog_button_add_clicked_cb (GtkWidget *button,
selection = gtk_tree_view_get_selection (view);
gtk_tree_selection_unselect_all (selection);
+ gtk_widget_set_sensitive (dialog->button_add, FALSE);
gtk_widget_hide (dialog->vbox_details);
gtk_widget_hide (dialog->frame_no_account);
gtk_widget_show (dialog->frame_new_account);
@@ -1006,6 +1011,7 @@ empathy_accounts_dialog_show (GtkWindow *parent)
"button_back", &dialog->button_back,
"image_type", &dialog->image_type,
"label_name", &dialog->label_name,
+ "button_add", &dialog->button_add,
"button_remove", &dialog->button_remove,
"button_connect", &dialog->button_connect,
"button_close", &button_close,