aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-09 17:29:57 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-09 17:29:57 +0800
commit5a1f97224b86f734537637f36d8baa8a942b2f0a (patch)
tree37e7bedf154f702ce67d74297e6672606816e543 /src/window-commands.c
parentd5db5ec63e219c783c64daf03dd80cd91351b9cc (diff)
downloadgsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.tar
gsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.tar.gz
gsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.tar.bz2
gsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.tar.lz
gsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.tar.xz
gsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.tar.zst
gsoc2013-epiphany-5a1f97224b86f734537637f36d8baa8a942b2f0a.zip
Add an accellerator-only action (F7) to toggle caret browsing. Hook up
2004-01-09 Christian Persch <chpe@cvs.gnome.org> * data/epiphany.schemas.in: * data/ui/epiphany-ui.xml: * embed/ephy-embed-prefs.h: * embed/mozilla/mozilla-notifiers.cpp: * src/ephy-window.c: (ephy_window_finalize), (browse_with_caret_notifier), (ephy_window_init): * src/pdm-dialog.c: (show_cookies_properties): * src/window-commands.c: (window_cmd_browse_with_caret): * src/window-commands.h: Add an accellerator-only action (F7) to toggle caret browsing. Hook up listener to set the mozilla pref, added the gconf key to the schema.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 4b809321c..bb98bf12e 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -31,6 +31,7 @@
#include "print-dialog.h"
#include "eel-gconf-extensions.h"
#include "ephy-prefs.h"
+#include "ephy-embed-prefs.h"
#include "ephy-dialog.h"
#include "ephy-bookmarks-editor.h"
#include "ephy-history-window.h"
@@ -1105,3 +1106,12 @@ window_cmd_load_location (GtkAction *action,
}
}
+void
+window_cmd_browse_with_caret (GtkAction *action,
+ EphyWindow *window)
+{
+ gboolean active;
+
+ active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
+ eel_gconf_set_boolean (CONF_BROWSE_WITH_CARET, active);
+}