[gnome-builder] vcsui: avoid submenu for Version Control items
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vcsui: avoid submenu for Version Control items
- Date: Mon, 6 May 2019 05:30:47 +0000 (UTC)
commit 2022f86e36079efc580dac59808ad7ffb66e421a
Author: Christian Hergert <chergert redhat com>
Date: Sun May 5 22:30:19 2019 -0700
vcsui: avoid submenu for Version Control items
src/plugins/vcsui/gtk/menus.ui | 38 +++++++++++++++-----------------------
1 file changed, 15 insertions(+), 23 deletions(-)
---
diff --git a/src/plugins/vcsui/gtk/menus.ui b/src/plugins/vcsui/gtk/menus.ui
index 58173e249..a18efa6fb 100644
--- a/src/plugins/vcsui/gtk/menus.ui
+++ b/src/plugins/vcsui/gtk/menus.ui
@@ -2,29 +2,21 @@
<interface>
<menu id="project-tree-menu">
<section id="project-tree-menu-vcs">
- <submenu id="project-tree-menu-version-control">
- <attribute name="label" translatable="yes">Version Control</attribute>
- <section id="project-tree-vcsui-branches">
- <item>
- <attribute name="label" translatable="yes">Switch Branch</attribute>
- <attribute name="action">vcsui.switch-branch</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Push to origin</attribute>
- <attribute name="action">vcsui.push-branch</attribute>
- </item>
- </section>
- </submenu>
- <!--
- <item>
- <attribute name="label" translatable="yes">Restore File</attribute>
- <attribute name="action">vcsui.restore-file</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Browse History</attribute>
- <attribute name="action">vcsui.browse-history</attribute>
- </item>
- -->
+ <item>
+ <attribute name="hidden-when">action-disabled</attribute>
+ <attribute name="label" translatable="yes">Switch to branch</attribute>
+ <attribute name="action">vcsui.switch-branch</attribute>
+ </item>
+ <item>
+ <attribute name="hidden-when">action-disabled</attribute>
+ <attribute name="label" translatable="yes">Push to origin</attribute>
+ <attribute name="action">vcsui.push-branch</attribute>
+ </item>
+ <!-- item>
+ <attribute name="hidden-when">action-disabled</attribute>
+ <attribute name="label" translatable="yes">Fetch from origin</attribute>
+ <attribute name="action">vcsui.fetch-branch</attribute>
+ </item -->
</section>
</menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]