[empathy] accounts_dialog_model_set_selected: use select_and_scroll_to_iter



commit 0b9a9d0171d55523519249a55971c9f4f051dc4c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Mar 7 11:05:23 2011 +0100

    accounts_dialog_model_set_selected: use select_and_scroll_to_iter
    
    That way we also scroll to the selected account (#643860).

 src/empathy-accounts-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index ffe1df3..87ddba0 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1532,7 +1532,7 @@ accounts_dialog_model_set_selected (EmpathyAccountsDialog *dialog,
 
   selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->treeview));
   if (accounts_dialog_get_settings_iter (dialog, settings, &iter))
-    gtk_tree_selection_select_iter (selection, &iter);
+    select_and_scroll_to_iter (dialog, &iter);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]