aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-node-view.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-node-view.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-node-view.c')
-rw-r--r--src/bookmarks/ephy-node-view.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c
index 8c75a40cf..1a2a0cf3d 100644
--- a/src/bookmarks/ephy-node-view.c
+++ b/src/bookmarks/ephy-node-view.c
@@ -556,7 +556,7 @@ cell_renderer_edited (GtkCellRendererText *cell,
g_value_unset (&value);
}
-void
+GtkTreeViewColumn *
ephy_node_view_add_column (EphyNodeView *view,
const char *title,
EphyTreeModelNodeColumn column,
@@ -566,7 +566,7 @@ ephy_node_view_add_column (EphyNodeView *view,
GtkTreeViewColumn *gcolumn;
GtkCellRenderer *renderer;
- g_return_if_fail (!editable || view->priv->editable_renderer == NULL);
+ g_return_val_if_fail (!editable || view->priv->editable_renderer == NULL, NULL);
gcolumn = (GtkTreeViewColumn *) gtk_tree_view_column_new ();
renderer = gtk_cell_renderer_text_new ();
@@ -594,6 +594,8 @@ ephy_node_view_add_column (EphyNodeView *view,
view->priv->default_sort_column_id = column;
g_idle_add ((GSourceFunc) set_sort_column_id, view);
}
+
+ return gcolumn;
}
void
@@ -665,13 +667,6 @@ ephy_node_view_get_selection (EphyNodeView *view)
}
void
-ephy_node_view_select_all (EphyNodeView *view)
-{
- GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
- gtk_tree_selection_select_all (sel);
-}
-
-void
ephy_node_view_remove (EphyNodeView *view)
{
GList *list;
@@ -687,15 +682,6 @@ ephy_node_view_remove (EphyNodeView *view)
}
void
-ephy_node_view_set_browse_mode (EphyNodeView *view)
-{
- GtkTreeSelection *selection;
-
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
- gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
-}
-
-void
ephy_node_view_select_node (EphyNodeView *view,
EphyNode *node)
{