[eog] EogWindow: Add F10 keyboard shortcut for gear menu
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Add F10 keyboard shortcut for gear menu
- Date: Wed, 21 Oct 2015 19:07:08 +0000 (UTC)
commit 25602162f7332f903f6d3b2f7b57ced5e064fd0e
Author: Felix Riemann <friemann gnome org>
Date: Sun Oct 11 15:58:56 2015 +0200
EogWindow: Add F10 keyboard shortcut for gear menu
https://bugzilla.gnome.org/show_bug.cgi?id=754985
src/eog-application.c | 1 +
src/eog-window.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-application.c b/src/eog-application.c
index 785ae49..bfd8118 100644
--- a/src/eog-application.c
+++ b/src/eog-application.c
@@ -253,6 +253,7 @@ eog_application_init_accelerators (GtkApplication *application)
"win.view-fullscreen", "F11", NULL,
"win.view-slideshow", "F5", NULL,
"win.toggle-zoom-fit", "F", NULL,
+ "win.toggle-gear-menu", "F10", NULL,
NULL /* Terminating NULL */
};
diff --git a/src/eog-window.c b/src/eog-window.c
index bae7803..0f222c1 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4343,6 +4343,11 @@ eog_window_construct_ui (EogWindow *window)
gtk_header_bar_pack_end (GTK_HEADER_BAR (headerbar), menu_button);
gtk_widget_show (menu_button);
+ action = G_ACTION (g_property_action_new ("toggle-gear-menu",
+ menu_button, "active"));
+ g_action_map_add_action (G_ACTION_MAP (window), action);
+ g_object_unref (action);
+
fullscreen_button = gtk_button_new_from_icon_name ("view-fullscreen-symbolic",
GTK_ICON_SIZE_BUTTON);
gtk_actionable_set_action_name (GTK_ACTIONABLE (fullscreen_button),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]