diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-07-04 17:41:34 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-07-04 17:41:34 +0800 |
commit | 1b35f6aa52f764c40c1fb603d8ca9e6622d12f02 (patch) | |
tree | b7e57c51180287df01d104021316758cd177b61f /libempathy-gtk/empathy-accounts-dialog.c | |
parent | 322ab0cf74a384fceef1908d38ad452260c854aa (diff) | |
download | gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.tar gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.tar.gz gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.tar.bz2 gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.tar.lz gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.tar.xz gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.tar.zst gsoc2013-empathy-1b35f6aa52f764c40c1fb603d8ca9e6622d12f02.zip |
Select the bugged account upon a failed connection. Fixes bug #536984 (Jonny Lamb).
When a connection fails, a box in the main window appears with an "Edit
Account" button. Clicking this button takes you to the account editor,
but does nothing else. This patch moves the selection to the bugged
account, for convenience.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1192
Diffstat (limited to 'libempathy-gtk/empathy-accounts-dialog.c')
-rw-r--r-- | libempathy-gtk/empathy-accounts-dialog.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c index 177fc6fe8..a148ed24f 100644 --- a/libempathy-gtk/empathy-accounts-dialog.c +++ b/libempathy-gtk/empathy-accounts-dialog.c @@ -1003,7 +1003,8 @@ accounts_dialog_destroy_cb (GtkWidget *widget, } GtkWidget * -empathy_accounts_dialog_show (GtkWindow *parent) +empathy_accounts_dialog_show (GtkWindow *parent, + McAccount *selected_account) { static EmpathyAccountsDialog *dialog = NULL; GladeXML *glade; @@ -1086,7 +1087,12 @@ empathy_accounts_dialog_show (GtkWindow *parent) accounts_dialog_model_setup (dialog); accounts_dialog_setup (dialog); - accounts_dialog_model_select_first (dialog); + + if (selected_account) { + accounts_dialog_model_set_selected (dialog, selected_account); + } else { + accounts_dialog_model_select_first (dialog); + } if (parent) { gtk_window_set_transient_for (GTK_WINDOW (dialog->window), |