diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-03-15 02:41:35 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-03-15 02:41:35 +0800 |
commit | cf6aa33a55708514144f27220b71a66adb8232a3 (patch) | |
tree | f1a9bb91563f46490cf469d98bb0a5324e94c48e /src/window-commands.c | |
parent | 79b688e5ae5c412faf82c4c62aa58913b735feb6 (diff) | |
download | gsoc2013-epiphany-cf6aa33a55708514144f27220b71a66adb8232a3.tar.gz gsoc2013-epiphany-cf6aa33a55708514144f27220b71a66adb8232a3.tar.zst gsoc2013-epiphany-cf6aa33a55708514144f27220b71a66adb8232a3.zip |
Support "Multimedia" keys. Fixes bug #162748.
2005-03-14 Christian Persch <chpe@cvs.gnome.org>
* data/ui/epiphany-ui.xml:
* src/ephy-window.c: (ephy_window_key_press_event),
(setup_multimedia_key_actions), (setup_ui_manager):
* src/window-commands.c: (window_cmd_go_home):
* src/window-commands.h:
Support "Multimedia" keys. Fixes bug #162748.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r-- | src/window-commands.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index e4d54d24c..2b06e2ca5 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -912,3 +912,25 @@ window_cmd_browse_with_caret (GtkAction *action, active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); eel_gconf_set_boolean (CONF_BROWSE_WITH_CARET, active); } + +#ifdef HAVE_X11_XF86KEYSYM_H +void +window_cmd_go_home (GtkAction *action, + EphyWindow *window) +{ + char *location; + + location = eel_gconf_get_string (CONF_GENERAL_HOMEPAGE); + + if (location == NULL || location[0] == '\0') + { + g_free (location); + + location = g_strdup ("about:blank"); + } + + ephy_window_load_url (window, location); + + g_free (location); +} +#endif /* HAVE_X11_XF86KEYSYM_H */ |