summaryrefslogtreecommitdiff
path: root/panels/online-accounts
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2013-03-19 13:40:33 +0100
committerDebarshi Ray <debarshir@gnome.org>2013-03-19 14:24:31 +0100
commit48a9df92c3e691e088cb945b6d8eca73c2ecb9db (patch)
treeb57ac15f5f9ab3e77cb39d59d720f5778d8334ab /panels/online-accounts
parent6d68acff0abb2a721b464e95529c57bd2ae25827 (diff)
downloadgnome-control-center-48a9df92c3e691e088cb945b6d8eca73c2ecb9db.tar.gz
online-accounts: Scroll the tree view when showing an account
https://bugzilla.gnome.org/show_bug.cgi?id=695171
Diffstat (limited to 'panels/online-accounts')
-rw-r--r--panels/online-accounts/cc-online-accounts-panel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c
index 16c297466..5d569a61f 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -501,12 +501,16 @@ select_account_by_id (CcGoaPanel *panel,
if (iter_set)
{
+ GtkTreePath *path;
GtkTreeView *tree_view;
GtkTreeSelection *selection;
tree_view = GTK_TREE_VIEW (panel->accounts_treeview);
selection = gtk_tree_view_get_selection (tree_view);
gtk_tree_selection_select_iter (selection, &iter);
+ path = gtk_tree_model_get_path (GTK_TREE_MODEL (panel->accounts_model), &iter);
+ gtk_tree_view_scroll_to_cell (tree_view, path, NULL, FALSE, 0.0, 0.0);
+ gtk_tree_path_free (path);
}
return iter_set;