[epiphany] ephy-window: show the overview on alt+home



commit d8ae12d7144c26575e7c6ed167fcfe13fa8cdd96
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Wed Apr 4 17:13:52 2012 +0300

    ephy-window: show the overview on alt+home

 src/ephy-window.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5e4b7d4..ba4c109 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -262,6 +262,7 @@ static const struct
 	 * extra keybindings, but does not seem to work for some
 	 * reason. */
 	{ GDK_KEY_e,		GDK_MOD1_MASK,	        "PageMenu",		 TRUE },
+	{ GDK_KEY_Home,		GDK_MOD1_MASK,	        "FileHome",		 TRUE },
 	/* FIXME: these are not in any menu for now, so add them here. */
 	{ GDK_KEY_F11,          0,                      "ViewFullscreen",        FALSE },
 	{ GDK_KEY_plus,         GDK_CONTROL_MASK,       "ViewZoomIn",            FALSE },
@@ -1443,6 +1444,16 @@ setup_ui_manager (EphyWindow *window)
 	gtk_action_group_add_action_with_accel (action_group, action, "<control>T");
 	g_object_unref (action);
 
+	action =
+		g_object_new (EPHY_TYPE_HOME_ACTION,
+			      "name", "FileHome",
+			      "label", _("Go to most visited"),
+			      NULL);
+	gtk_action_group_add_action_with_accel (action_group, action, "<alt>Home");
+	g_signal_connect_swapped (action, "open-link",
+				  G_CALLBACK (ephy_link_open), window);
+	g_object_unref (action);
+
 	action = g_object_new (EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION,
 			       "name", "ViewCombinedStopReload",
 			       "loading", FALSE,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]