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/bookmarks/ephy-bookmarks-ui.c | |
parent | cd3b869d189cc52c08a8807cd03994adc761e5ad (diff) | |
download | gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar.gz gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar.bz2 gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar.lz gsoc2013-epiphany-1885536e41726d40825753019e37c793dc83a70d.tar.xz 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/bookmarks/ephy-bookmarks-ui.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-ui.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-bookmarks-ui.c b/src/bookmarks/ephy-bookmarks-ui.c index 4a8e8a4c4..bab58195f 100644 --- a/src/bookmarks/ephy-bookmarks-ui.c +++ b/src/bookmarks/ephy-bookmarks-ui.c @@ -21,6 +21,7 @@ #include "config.h" +#include "eel-gconf-extensions.h" #include "ephy-bookmarks.h" #include "ephy-bookmarks-ui.h" #include "ephy-bookmarks-menu.h" @@ -43,12 +44,14 @@ #include "ephy-file-helpers.h" #include "ephy-gui.h" #include "ephy-stock-icons.h" +#include "ephy-prefs.h" #include "egg-editable-toolbar.h" #include <string.h> #include <glib/gi18n.h> #include <gtk/gtkmain.h> + #define BM_WINDOW_DATA_KEY "bookmarks-window-data" typedef struct @@ -429,6 +432,9 @@ ephy_bookmarks_ui_add_bookmark (GtkWindow *parent, const char *location, const char *title) { + + if (eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_BOOKMARK_EDITING)) return; + EphyBookmarks *bookmarks; EphyNode *bookmark; GtkWidget *dialog; |