aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-08-12 05:34:48 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-08-12 05:34:48 +0800
commit18b380cca9b84e0061ca93b00d6e19cf4cfed7fa (patch)
tree6e62e79609306d66c6afbfe4ef8939e0d076e9bc /libempathy-gtk/empathy-accounts-dialog.c
parent1a96737b8aa3736ea2a7f09cbe83d8eb521762b7 (diff)
downloadgsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.tar
gsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.tar.gz
gsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.tar.bz2
gsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.tar.lz
gsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.tar.xz
gsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.tar.zst
gsoc2013-empathy-18b380cca9b84e0061ca93b00d6e19cf4cfed7fa.zip
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). git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@249 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-accounts-dialog.c')
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c6
1 files changed, 6 insertions, 0 deletions
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,