aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-editor.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-15 22:10:57 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-15 22:10:57 +0800
commitb97ce595da599035a5b3e38997eace8c2b416060 (patch)
treedb1b3f8fb8f512509b1961385f4fb9335d12acbb /src/bookmarks/ephy-bookmarks-editor.c
parentc608bb09921d9f654c7dc6fd3a81a370b2c85111 (diff)
downloadgsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.tar
gsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.tar.gz
gsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.tar.bz2
gsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.tar.lz
gsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.tar.xz
gsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.tar.zst
gsoc2013-epiphany-b97ce595da599035a5b3e38997eace8c2b416060.zip
Remove some api that was just silly wrappers. Return GtkTreeViewColumn on
2003-04-15 Marco Pesenti Gritti <marco@it.gnome.org> * TODO: * src/bookmarks/ephy-bookmarks-editor.c: (cmd_select_all), (ephy_bookmarks_editor_construct): * src/bookmarks/ephy-node-view.c: (ephy_node_view_add_column), (ephy_node_view_remove): * src/bookmarks/ephy-node-view.h: Remove some api that was just silly wrappers. Return GtkTreeViewColumn on add_column. * src/ephy-nautilus-view.c: (gnv_embed_new_window_cb): * src/ephy-shell.c: (ephy_shell_new_window_cb), (ephy_shell_new_tab): * src/ephy-tab.c: (ephy_tab_new_window_cb): * src/ephy-window.c: (ephy_window_add_tab): * src/ephy-window.h: * src/session.c: (parse_embed): Ever open tab as last on File->New tab and similars.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 1dbcac36a..7239f2d20 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -350,14 +350,18 @@ cmd_select_all (EggAction *action,
EphyBookmarksEditor *editor)
{
GtkWidget *widget = gtk_window_get_focus (GTK_WINDOW (editor));
+ GtkWidget *bm_view = editor->priv->bm_view;
if (GTK_IS_EDITABLE (widget))
{
gtk_editable_select_region (GTK_EDITABLE (widget), 0, -1);
}
- else if (gtk_widget_is_focus (editor->priv->bm_view))
+ else if (gtk_widget_is_focus (bm_view))
{
- ephy_node_view_select_all (EPHY_NODE_VIEW (editor->priv->bm_view));
+ GtkTreeSelection *sel;
+
+ sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (bm_view));
+ gtk_tree_selection_select_all (sel);
}
}
@@ -831,6 +835,7 @@ node_dropped_cb (EphyNodeView *view, EphyNode *node,
static void
ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
{
+ GtkTreeSelection *selection;
GtkWidget *hbox, *vbox;
GtkWidget *bm_view, *key_view;
GtkWidget *scrolled_window;
@@ -908,7 +913,8 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
ephy_node_view_enable_drag_dest (EPHY_NODE_VIEW (key_view),
topic_drag_dest_types,
n_topic_drag_dest_types);
- ephy_node_view_set_browse_mode (EPHY_NODE_VIEW (key_view));
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (key_view));
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
ephy_node_view_add_column (EPHY_NODE_VIEW (key_view), _("Topics"),
EPHY_TREE_MODEL_NODE_COL_KEYWORD, TRUE, TRUE);
gtk_container_add (GTK_CONTAINER (scrolled_window), key_view);