[gnome-builder/wip/chergert/shortcuts] shortcuts: add more items before we try to simplify this
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/shortcuts] shortcuts: add more items before we try to simplify this
- Date: Mon, 31 Aug 2015 06:35:23 +0000 (UTC)
commit 1a487ec376a29c7768ad0e4a5d2b396776e9e9d5
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"><ctrl>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"><ctrl>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"><ctrl><alt>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"><ctrl><alt>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]