[gnome-builder] shortcuts: add more items before we try to simplify this



commit 165ba80dca21d6263a07a8204a1c17c5e7e5d23c
Author: Christian Hergert <christian hergert me>
Date:   Sun Aug 30 19:09:10 2015 -0700

    shortcuts: add more items before we try to simplify this

 data/ui/gb-shortcuts-window.ui      |   39 +++++++++++++++++++++++++++++++++++
 src/shortcuts/gb-shortcuts-dialog.c |    2 +
 2 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/gb-shortcuts-window.ui b/data/ui/gb-shortcuts-window.ui
index f893dce..e75150e 100644
--- a/data/ui/gb-shortcuts-window.ui
+++ b/data/ui/gb-shortcuts-window.ui
@@ -57,6 +57,45 @@
                 </child>
               </object>
             </child>
+            <child>
+              <object class="GbShortcutsColumn">
+                <property name="visible">true</property>
+                <child>
+                  <object class="GbShortcutsGroup">
+                    <property name="title" translatable="yes">Files</property>
+                    <property name="visible">true</property>
+                    <child>
+                      <object class="GbShortcutsShortcut">
+                        <property name="accelerator">&lt;ctrl&gt;n</property>
+                        <property name="title" translatable="yes">Create new document</property>
+                        <property name="visible">true</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GbShortcutsShortcut">
+                        <property name="accelerator">&lt;ctrl&gt;o</property>
+                        <property name="title" translatable="yes">Open a document</property>
+                        <property name="visible">true</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GbShortcutsShortcut">
+                        <property name="accelerator">&lt;ctrl&gt;&lt;alt&gt;Page_Down</property>
+                        <property name="title" translatable="yes">Switch to the next document</property>
+                        <property name="visible">true</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="GbShortcutsShortcut">
+                        <property name="accelerator">&lt;ctrl&gt;&lt;alt&gt;Page_Up</property>
+                        <property name="title" translatable="yes">Switch to the previous document</property>
+                        <property name="visible">true</property>
+                      </object>
+                    </child>
+                  </object>
+                </child>
+              </object>
+            </child>
           </object>
         </child>
       </object>
diff --git a/src/shortcuts/gb-shortcuts-dialog.c b/src/shortcuts/gb-shortcuts-dialog.c
index 653ec07..68acca8 100644
--- a/src/shortcuts/gb-shortcuts-dialog.c
+++ b/src/shortcuts/gb-shortcuts-dialog.c
@@ -167,6 +167,8 @@ gb_shortcuts_dialog_init (GbShortcutsDialog *self)
   GtkArrow *arrow;
   GtkSearchEntry *entry;
 
+  gtk_window_set_resizable (GTK_WINDOW (self), FALSE);
+
   priv->header_bar = g_object_new (GTK_TYPE_HEADER_BAR,
                                    "show-close-button", TRUE,
                                    "visible", TRUE,


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