[gnome-builder/wip/chergert/layout] terminal: add menus for terminal view
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] terminal: add menus for terminal view
- Date: Thu, 6 Jul 2017 06:36:18 +0000 (UTC)
commit 3dfb6e35635da731f027e0f8b933b408eedcdb0b
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 5 23:36:09 2017 -0700
terminal: add menus for terminal view
plugins/terminal/gb-terminal-view.c | 1 +
plugins/terminal/gtk/menus.ui | 19 +++++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/plugins/terminal/gb-terminal-view.c b/plugins/terminal/gb-terminal-view.c
index dc3d2d2..4edbcd1 100644
--- a/plugins/terminal/gb-terminal-view.c
+++ b/plugins/terminal/gb-terminal-view.c
@@ -718,6 +718,7 @@ gb_terminal_view_init (GbTerminalView *self)
ide_layout_view_set_icon_name (IDE_LAYOUT_VIEW (self), "utilities-terminal-symbolic");
ide_layout_view_set_can_split (IDE_LAYOUT_VIEW (self), TRUE);
+ ide_layout_view_set_menu_id (IDE_LAYOUT_VIEW (self), "terminal-view-document-menu");
gtk_overlay_add_overlay (self->terminal_overlay_top,
GTK_WIDGET (self->search_revealer_top));
diff --git a/plugins/terminal/gtk/menus.ui b/plugins/terminal/gtk/menus.ui
index 77ffe08..3707d14 100644
--- a/plugins/terminal/gtk/menus.ui
+++ b/plugins/terminal/gtk/menus.ui
@@ -54,4 +54,23 @@
</submenu>
</section>
</menu>
+ <menu id="terminal-view-document-menu">
+ <section id="terminal-document-section">
+ <attribute name="label" translatable="yes">Terminal</attribute>
+ <item>
+ <attribute name="label" translatable="yes">Open in New Frame</attribute>
+ <attribute name="action">layoutstack.open-in-new-frame</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Split</attribute>
+ <attribute name="action">layoutstack.split-view</attribute>
+ </item>
+ </section>
+ <section id="terminal-close-section">
+ <item>
+ <attribute name="label" translatable="yes">Close</attribute>
+ <attribute name="action">layoutstack.close-view</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]