diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-07-11 04:57:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-11 04:57:14 +0800 |
commit | 39e1b868fe021ab8fe04ade6774d04ed87c05a81 (patch) | |
tree | bd87552b218755815cc17acda43c3513ef316d2f /src/bookmarks/ephy-bookmarks-editor.c | |
parent | b6ccb049d514886311520d3c16c8b592dfcde3a3 (diff) | |
download | gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.tar gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.tar.gz gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.tar.bz2 gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.tar.lz gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.tar.xz gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.tar.zst gsoc2013-epiphany-39e1b868fe021ab8fe04ade6774d04ed87c05a81.zip |
Implement a way to disallow dragging from resp. dropping on certain nodes.
2005-07-10 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-node-common.h:
* lib/ephy-node.c: (ephy_node_new_with_id),
(ephy_node_signal_disconnect), (ephy_node_set_is_drag_source),
(ephy_node_get_is_drag_source), (ephy_node_set_is_drag_dest),
(ephy_node_get_is_drag_dest):
* lib/ephy-node.h:
* lib/widgets/ephy-node-view.c: (drag_motion_cb),
(drag_data_received_cb):
Implement a way to disallow dragging from resp. dropping on certain
nodes.
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_update_menu):
* src/bookmarks/ephy-bookmarks.c: (save_filter),
(save_filter_local), (ephy_bookmarks_save),
(update_bookmark_keywords), (bookmark_is_categorized),
(resolve_cb), (browse_cb), (ephy_local_bookmarks_init),
(ephy_local_bookmarks_stop), (ephy_bookmarks_init),
(ephy_bookmarks_finalize), (ephy_bookmarks_get_topic_uri),
(ephy_bookmarks_find_keyword), (ephy_bookmarks_get_favorites),
(ephy_bookmarks_get_local):
* src/bookmarks/ephy-bookmarks.h:
Implement "Local Sites" topic, filled with zeroconf-discovered
bookmarks. Patch by Bastien Nocera, fixes bug #144969.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 5ff95844d..2049ad0df 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -1157,6 +1157,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor) gboolean key_normal = FALSE; gboolean cut, copy, paste, select_all; gboolean can_show_in_bookmarks_bar, show_in_bookmarks_bar = FALSE; + gboolean mutable = TRUE; GtkActionGroup *action_group; GtkAction *action; GList *selected; @@ -1229,6 +1230,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor) id = ephy_node_get_id (node); show_in_bookmarks_bar = ephy_bookmarksbar_model_has_bookmark (editor->priv->tb_model, id); + mutable = !ephy_node_get_property_boolean (node, EPHY_NODE_BMK_PROP_IMMUTABLE); g_list_free (selected); } @@ -1251,11 +1253,11 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor) open_in_window = (bmk_focus && bmk_selection); open_in_tab = (bmk_focus && bmk_selection); - rename = (bmk_focus && single_bmk_selected) || + rename = (bmk_focus && single_bmk_selected && mutable) || (key_selection && key_focus && key_normal); delete = (bmk_focus && bmk_selection) || (key_selection && key_focus && key_normal); - properties = (bmk_focus && single_bmk_selected); + properties = bmk_focus && single_bmk_selected && mutable; can_show_in_bookmarks_bar = (bmk_focus && single_bmk_selected) || (key_selection && key_focus); |