[gnome-builder] menus: add right/bottom/left buttons
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] menus: add right/bottom/left buttons
- Date: Tue, 28 Jun 2016 00:03:22 +0000 (UTC)
commit 46a84588f7b0c45c1fe43aa758b22b6bca632731
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 20 18:40:17 2016 -0700
menus: add right/bottom/left buttons
These still need to be wired up, but that requires some more work in each
perspective.
data/gtk/menus.ui | 19 +++++++++++++++++++
libide/workbench/ide-workbench-header-bar.c | 1 +
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/data/gtk/menus.ui b/data/gtk/menus.ui
index 08d6f6d..0e4b30f 100644
--- a/data/gtk/menus.ui
+++ b/data/gtk/menus.ui
@@ -44,6 +44,25 @@
</section>
</menu>
<menu id="gear-menu">
+ <section id="gear-menu-layout-section">
+ <attribute name="id">juntion-section</attribute>
+ <attribute name="display-hint">horizontal-buttons</attribute>
+ <item>
+ <attribute name="label" translatable="yes">Show left panel</attribute>
+ <attribute name="action">perspective.left-visible</attribute>
+ <attribute name="verb-icon">builder-view-left-pane-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Show bottom panel</attribute>
+ <attribute name="action">perspective.bottom-visible</attribute>
+ <attribute name="verb-icon">builder-view-bottom-pane-symbolic</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Show right panel</attribute>
+ <attribute name="action">perspective.right-visible</attribute>
+ <attribute name="verb-icon">builder-view-right-pane-symbolic</attribute>
+ </item>
+ </section>
<!--
<section>
<attribute name="id">juntion-section</attribute>
diff --git a/libide/workbench/ide-workbench-header-bar.c b/libide/workbench/ide-workbench-header-bar.c
index e30e856..1f48ff6 100644
--- a/libide/workbench/ide-workbench-header-bar.c
+++ b/libide/workbench/ide-workbench-header-bar.c
@@ -67,6 +67,7 @@ ide_workbench_header_bar_init (IdeWorkbenchHeaderBar *self)
model = ide_application_get_menu_by_id (IDE_APPLICATION_DEFAULT, "gear-menu");
popover = gtk_popover_new_from_model (NULL, G_MENU_MODEL (model));
+ gtk_widget_set_size_request (popover, 225, -1);
gtk_menu_button_set_popover (priv->menu_button, popover);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]