[frogr] Provide accelerators for new menu items, and update old ones
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Provide accelerators for new menu items, and update old ones
- Date: Sun, 11 Nov 2012 00:07:38 +0000 (UTC)
commit 726cc0b8492f9f8c3517e17bc8b661e54fa451c6
Author: Mario Sanchez Prada <msanchez2 gnome org>
Date: Thu Nov 8 13:25:05 2012 +0100
Provide accelerators for new menu items, and update old ones
src/frogr-main-view.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 31283cb..ccb2ee7 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -313,6 +313,18 @@ _setup_keyboard_shortcuts (FrogrMainView *self)
accel = gtk_accel_group_new();
gtk_window_add_accel_group(priv->window, accel);
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "load_session_menu_item"));
+ gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_o,
+ GDK_PRIMARY_MODIFIER, GTK_ACCEL_VISIBLE);
+
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "save_session_menu_item"));
+ gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_s,
+ GDK_PRIMARY_MODIFIER, GTK_ACCEL_VISIBLE);
+
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "save_session_as_menu_item"));
+ gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_s,
+ GDK_PRIMARY_MODIFIER | GDK_SHIFT_MASK, GTK_ACCEL_VISIBLE);
+
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "authorize_menu_item"));
gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_a,
GDK_PRIMARY_MODIFIER | GDK_SHIFT_MASK, GTK_ACCEL_VISIBLE);
@@ -346,11 +358,11 @@ _setup_keyboard_shortcuts (FrogrMainView *self)
GDK_PRIMARY_MODIFIER, GTK_ACCEL_VISIBLE);
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "add_to_existing_set_menu_item"));
- gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_s,
+ gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_p,
GDK_PRIMARY_MODIFIER, GTK_ACCEL_VISIBLE);
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "create_new_set_menu_item"));
- gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_s,
+ gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_p,
GDK_PRIMARY_MODIFIER | GDK_SHIFT_MASK, GTK_ACCEL_VISIBLE);
menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "open_in_external_viewer_menu_item"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]