aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-node-view.c
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@gnome.org>2003-02-07 06:32:01 +0800
committerJames Willcox <jwillcox@src.gnome.org>2003-02-07 06:32:01 +0800
commit1d8988f4d183bc8481a1ed6d10ca8d0d976266bd (patch)
treee4850771f04f625d7f9f973bb1e2186c60277609 /src/bookmarks/ephy-node-view.c
parentcf749bea95aaede12db0475b9205f79fdc227765 (diff)
downloadgsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.tar
gsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.tar.gz
gsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.tar.bz2
gsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.tar.lz
gsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.tar.xz
gsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.tar.zst
gsoc2013-epiphany-1d8988f4d183bc8481a1ed6d10ca8d0d976266bd.zip
Make the bookmarks editor remember the last selected keyword, and make
2003-02-06 James Willcox <jwillcox@gnome.org> * data/epiphany.schemas.in: * lib/ephy-prefs.h: * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_class_init), (ephy_bookmarks_editor_dispose), (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-node-view.c: (ephy_node_view_select_node): * src/ephy-main.c: (ephy_main_start): Make the bookmarks editor remember the last selected keyword, and make startup-notification not hang when using the existing instance.
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r--src/bookmarks/ephy-node-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c
index 8b9927fb7..102cefb9c 100644
--- a/src/bookmarks/ephy-node-view.c
+++ b/src/bookmarks/ephy-node-view.c
@@ -520,6 +520,7 @@ ephy_node_view_select_node (EphyNodeView *view,
GValue val = { 0, };
gboolean visible;
GtkTreeSelection *selection;
+ GtkTreePath *path;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view->priv->treeview));
@@ -538,7 +539,10 @@ ephy_node_view_select_node (EphyNodeView *view,
gtk_tree_model_sort_convert_child_iter_to_iter (GTK_TREE_MODEL_SORT (view->priv->sortmodel),
&iter, &iter2);
- gtk_tree_selection_select_iter (selection, &iter);
+ path = gtk_tree_model_get_path (GTK_TREE_MODEL (view->priv->sortmodel), &iter);
+ gtk_tree_view_set_cursor (GTK_TREE_VIEW (view->priv->treeview),
+ path, NULL, FALSE);
+ gtk_tree_path_free (path);
}
void