diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-15 23:59:55 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-15 23:59:55 +0800 |
commit | 7e61b74638a8d3858f1d019ecc4331b833b680ff (patch) | |
tree | 84e37a320bf3938f9045c875d9802cf7d94b1c29 /src/bookmarks/ephy-node-view.c | |
parent | a1962faa29d9f42ed0dfeab8126767470c4be6e0 (diff) | |
download | gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.gz gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.bz2 gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.lz gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.xz gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.tar.zst gsoc2013-epiphany-7e61b74638a8d3858f1d019ecc4331b833b680ff.zip |
Hidden pref for middle click open url. Default off.
2003-04-15 Marco Pesenti Gritti <marco@it.gnome.org>
* data/epiphany.schemas.in:
* lib/ephy-prefs.h:
* src/ephy-tab.c: (ephy_tab_init), (ephy_tab_dom_mouse_down_cb):
Hidden pref for middle click open url. Default off.
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_update_menu),
(ephy_bookmarks_editor_dispose), (keyword_node_selected_cb),
(keyword_node_show_popup_cb), (build_search_box),
(menu_activate_cb), (ephy_bookmarks_editor_construct):
* src/bookmarks/ephy-node-view.c: (cell_renderer_edited),
(ephy_node_view_init), (ephy_node_view_edit),
(ephy_node_view_is_editing):
* src/bookmarks/ephy-node-view.h:
Rework sensitivity updates and complete them with cut/copy/select all
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r-- | src/bookmarks/ephy-node-view.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c index 1a2a0cf3d..dcadb13bc 100644 --- a/src/bookmarks/ephy-node-view.c +++ b/src/bookmarks/ephy-node-view.c @@ -62,6 +62,8 @@ struct EphyNodeViewPrivate EphyTreeModelNodeColumn default_sort_column_id; GtkTargetList *drag_targets; + + gboolean editing; }; enum @@ -522,6 +524,8 @@ cell_renderer_edited (GtkCellRendererText *cell, GtkTreeIter iter, iter2; EphyNode *node; + view->priv->editing = FALSE; + g_object_set (G_OBJECT (view->priv->editable_renderer), "editable", FALSE, NULL); @@ -622,6 +626,7 @@ ephy_node_view_init (EphyNodeView *view) { view->priv = g_new0 (EphyNodeViewPrivate, 1); view->priv->editable_renderer = NULL; + view->priv->editing = TRUE; } static void @@ -900,11 +905,19 @@ ephy_node_view_edit (EphyNodeView *view) view->priv->editable_column, TRUE); + view->priv->editing = TRUE; + g_list_foreach (rows, (GFunc)gtk_tree_path_free, NULL); g_list_free (rows); } gboolean +ephy_node_view_is_editing (EphyNodeView *view) +{ + return view->priv->editing; +} + +gboolean ephy_node_view_has_selection (EphyNodeView *view, gboolean *multiple) { GtkTreeSelection *selection; |