From 818cf0139401620a5a04f0f0e12a5cbd001cdd8e Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 10 Jan 2004 15:35:19 +0000 Subject: Added disable_arbitrary_url, disable_toolbar_editing, and disable_history 2004-01-09 Christopher James Lahey * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added disable_arbitrary_url, disable_toolbar_editing, and disable_history keys. * src/ephy-automation.c (impl_ephy_automation_loadurl): Make this ignore a url given on the command line if disable_arbitrary_url is on. * src/ephy-notebook.c (notebook_drag_data_received_cb): Made this ignore drags if disable_arbitrary_url is on. * src/ephy-session.c (ephy_session_load): Don't show history window if disable_history is on. * src/ephy-tab.c (ephy_tab_dom_mouse_click_cb): Disable middle click to paste url if disable_arbitrary_url is on. * src/ephy-window.c: Disable menu actions based on disable_arbitrary_url, disable_toolbar_editing, and disable_history keys. --- src/ephy-notebook.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ephy-notebook.c') diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 799e27b74..54f3bfe5f 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -634,6 +634,8 @@ notebook_drag_data_received_cb (GtkWidget* widget, GdkDragContext *context, g_signal_stop_emission_by_name (widget, "drag_data_received"); + if (eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_ARBITRARY_URL)) return; + if (selection_data->length <= 0 || selection_data->data == NULL) return; if (selection_data->target == gdk_atom_intern (EPHY_DND_URL_TYPE, FALSE)) -- cgit v1.2.3