[gnome-builder] editor: fix print shortcut



commit 5c0db49df5c5fb85f9e34bff7c76c69f4d0c42ab
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 10 13:23:54 2019 -0700

    editor: fix print shortcut
    
    Fixes #910

 src/libide/editor/ide-editor-page-shortcuts.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/src/libide/editor/ide-editor-page-shortcuts.c b/src/libide/editor/ide-editor-page-shortcuts.c
index a73e81f6f..17324771e 100644
--- a/src/libide/editor/ide-editor-page-shortcuts.c
+++ b/src/libide/editor/ide-editor-page-shortcuts.c
@@ -40,6 +40,12 @@ static DzlShortcutEntry editor_view_shortcuts[] = {
     NC_("shortcut window", "Files"),
     NC_("shortcut window", "Save the document with a new name") },
 
+  { "org.gnome.builder.editor-page.print",
+    0, NULL,
+    NC_("shortcut window", "Editor shortcuts"),
+    NC_("shortcut window", "Files"),
+    NC_("shortcut window", "Print the document") },
+
   { "org.gnome.builder.editor-page.find",
     0, NULL,
     NC_("shortcut window", "Editor shortcuts"),
@@ -134,6 +140,12 @@ _ide_editor_page_init_shortcuts (IdeEditorPage *self)
                                               DZL_SHORTCUT_PHASE_BUBBLE,
                                               I_("editor-page.save-as"));
 
+  dzl_shortcut_controller_add_command_action (controller,
+                                              I_("org.gnome.builder.editor-page.print"),
+                                              "<Primary>p",
+                                              DZL_SHORTCUT_PHASE_BUBBLE,
+                                              I_("editor-page.print"));
+
   dzl_shortcut_manager_add_shortcut_entries (NULL,
                                              editor_view_shortcuts,
                                              G_N_ELEMENTS (editor_view_shortcuts),


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