[gnome-builder] shortcuts: add F9 shortcuts back



commit d60247cdcad588425d3a8d9496bae255740ead32
Author: Christian Hergert <chergert redhat com>
Date:   Sat Dec 5 02:58:19 2015 -0800

    shortcuts: add F9 shortcuts back

 libide/ide-application-actions.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-application-actions.c b/libide/ide-application-actions.c
index 09c64fc..999d303 100644
--- a/libide/ide-application-actions.c
+++ b/libide/ide-application-actions.c
@@ -265,6 +265,17 @@ static const GActionEntry IdeApplicationActions[] = {
 void
 ide_application_actions_init (IdeApplication *self)
 {
+  static const gchar *left[] = { "F9", NULL };
+  static const gchar *right[] = { "<shift>F9", NULL };
+  static const gchar *bottom[] = { "<control>F9", NULL };
+
   g_action_map_add_action_entries (G_ACTION_MAP (self), IdeApplicationActions,
                                    G_N_ELEMENTS (IdeApplicationActions), self);
+
+  /*
+   * FIXME: Once we get a new shortcuts engine, port these to that.
+   */
+  gtk_application_set_accels_for_action (GTK_APPLICATION (self), "panels.left", left);
+  gtk_application_set_accels_for_action (GTK_APPLICATION (self), "panels.right", right);
+  gtk_application_set_accels_for_action (GTK_APPLICATION (self), "panels.bottom", bottom);
 }


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