[frogr] Restored accelerators for project-related actions
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Restored accelerators for project-related actions
- Date: Tue, 27 Nov 2012 10:48:36 +0000 (UTC)
commit 67c6945a32f10cb79a0b27647f4fedb0fab6a102
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sat Nov 17 03:29:30 2012 +0100
Restored accelerators for project-related actions
src/frogr-main-view.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 43183af..60c1087 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -751,6 +751,18 @@ _setup_keyboard_shortcuts (FrogrMainView *self)
accel = gtk_accel_group_new();
gtk_window_add_accel_group(GTK_WINDOW (self), accel);
+ menu_item = GTK_WIDGET (gtk_builder_get_object (priv->builder, "load_project_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_project_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_project_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, "load_pictures_menu_item"));
gtk_widget_add_accelerator(menu_item, "activate", accel, GDK_KEY_l,
GDK_PRIMARY_MODIFIER, GTK_ACCEL_VISIBLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]