From cf6aa33a55708514144f27220b71a66adb8232a3 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 14 Mar 2005 18:41:35 +0000 Subject: Support "Multimedia" keys. Fixes bug #162748. 2005-03-14 Christian Persch * 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. --- src/window-commands.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/window-commands.c') 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 */ -- cgit v1.2.3