From 6cfd668cf221fc1ad4ad13f170a0e61a0e9be7d4 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 3 Apr 2006 13:32:02 +0000 Subject: Disable export when locked down. Bug #337028. 2006-04-03 Christian Persch * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct): Disable export when locked down. Bug #337028. --- src/bookmarks/ephy-bookmarks-editor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 0886ee3ae..54c8ead29 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -69,6 +69,7 @@ #include "eel-gconf-extensions.h" #include "ephy-debug.h" #include "egg-toolbars-model.h" +#include "ephy-prefs.h" static const GtkTargetEntry topic_drag_dest_types [] = { @@ -1752,6 +1753,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) EphyNode *node; GtkUIManager *ui_merge; GtkActionGroup *action_group; + GtkAction *action; int col_id, url_col_id, title_col_id, details_value; ephy_gui_ensure_window_group (GTK_WINDOW (editor)); @@ -1935,6 +1937,11 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) 130); set_columns_visibility (editor, details_value); + + /* Lockdown settings */ + action = gtk_action_group_get_action (action_group, "Export"); + gtk_action_set_sensitive (action, + eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_SAVE_TO_DISK) == FALSE); } void -- cgit