diff options
author | Diego Escalante Urrelo <diegoe@svn.gnome.org> | 2007-01-03 03:47:49 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-01-03 03:47:49 +0800 |
commit | 1885536e41726d40825753019e37c793dc83a70d (patch) | |
tree | 40f50e6726fdb51010ad4ef49011ccbae5c04f92 /src/ephy-history-window.c | |
parent | cd3b869d189cc52c08a8807cd03994adc761e5ad (diff) | |
download | gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar.gz gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar.zst gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.zip |
Disables "Add Bookmark" in the File menu when bookmarks are locked down.
2007-01-02 Diego Escalante Urrelo <diegoe@svn.gnome.org>
* src/ephy-history-window.c: (ephy_history_window_update_menu):
Disables "Add Bookmark" in the File menu when bookmarks are locked
down.
* src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_constructor):
Makes the topics pane insensitive and the rest of entries
non-editables (but sensitive so we can select the text)
when bookmarks are locked down.
* src/bookmarks/ephy-bookmarks-ui.c: (ephy_bookmarks_ui_add_bookmark):
Don't allow the add bookmark ui to appear if it's locked down.
svn path=/trunk/; revision=6778
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r-- | src/ephy-history-window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 45f64fdcf..934d831df 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -67,6 +67,7 @@ #include "ephy-node-common.h" #include "ephy-node-view.h" #include "ephy-bookmarks-ui.h" +#include "ephy-prefs.h" #include "ephy-gui.h" static const GtkTargetEntry page_drag_types [] = @@ -668,6 +669,7 @@ ephy_history_window_update_menu (EphyHistoryWindow *editor) gboolean cut, copy, paste, select_all; gboolean pages_focus, pages_selection, single_page_selected; gboolean delete, bookmark_page; + gboolean bookmarks_locked; int num_pages_selected; GtkActionGroup *action_group; GtkAction *action; @@ -722,7 +724,8 @@ ephy_history_window_update_menu (EphyHistoryWindow *editor) open_in_window = (pages_focus && pages_selection); open_in_tab = (pages_focus && pages_selection); delete = (pages_focus && pages_selection); - bookmark_page = (pages_focus && single_page_selected); + bookmarks_locked = eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_BOOKMARK_EDITING); + bookmark_page = (pages_focus && single_page_selected) && !bookmarks_locked; action_group = editor->priv->action_group; action = gtk_action_group_get_action (action_group, "OpenInWindow"); @@ -744,6 +747,7 @@ ephy_history_window_update_menu (EphyHistoryWindow *editor) gtk_action_set_sensitive (action, delete); action = gtk_action_group_get_action (action_group, "BookmarkLink"); gtk_action_set_sensitive (action, bookmark_page); + } static void |