aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-08-10 21:11:32 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-08-10 21:11:32 +0800
commitda9e37d5db7c115a0d3027140f61f006acb1b406 (patch)
treebb9b2caa974d6b682147f07a492a459d4824c657 /libempathy-gtk
parent1c86b016c9f04ca0ecc4af8c322c8d5ff889d9bb (diff)
downloadgsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.tar
gsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.tar.gz
gsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.tar.bz2
gsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.tar.lz
gsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.tar.xz
gsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.tar.zst
gsoc2013-empathy-da9e37d5db7c115a0d3027140f61f006acb1b406.zip
Unselect accounts when clicking on "add" button. Fixes bug #459173 (Cosimo
2007-08-10 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-accounts-dialog.c: Unselect accounts when clicking on "add" button. Fixes bug #459173 (Cosimo Cecchi). svn path=/trunk/; revision=245
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c
index ca637651c..3be77f447 100644
--- a/libempathy-gtk/empathy-accounts-dialog.c
+++ b/libempathy-gtk/empathy-accounts-dialog.c
@@ -837,9 +837,16 @@ accounts_dialog_button_connect_clicked_cb (GtkWidget *button,
}
static void
-accounts_dialog_button_add_clicked_cb (GtkWidget *button,
+accounts_dialog_button_add_clicked_cb (GtkWidget *button,
EmpathyAccountsDialog *dialog)
{
+ GtkTreeView *view;
+ GtkTreeSelection *selection;
+
+ view = GTK_TREE_VIEW (dialog->treeview);
+ selection = gtk_tree_view_get_selection (view);
+ gtk_tree_selection_unselect_all (selection);
+
gtk_widget_hide (dialog->vbox_details);
gtk_widget_hide (dialog->frame_no_account);
gtk_widget_show (dialog->frame_new_account);