[gnome-builder] menus: specify role for perspective buttons
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] menus: specify role for perspective buttons
- Date: Wed, 19 Jul 2017 11:16:07 +0000 (UTC)
commit ef12d34e39fa7dd923d4806de86b2e3baab9d966
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 10 18:51:38 2017 -0700
menus: specify role for perspective buttons
data/gtk/menus.ui | 21 ++++++++++++---------
plugins/sysprof/gtk/menus.ui | 9 +++++----
2 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/data/gtk/menus.ui b/data/gtk/menus.ui
index 1968e05..b5dc219 100644
--- a/data/gtk/menus.ui
+++ b/data/gtk/menus.ui
@@ -43,30 +43,33 @@
<menu id="perspectives-menu">
<section id="perspectives-menu-section">
<item>
- <attribute name="id">perspective-menu-editor</attribute>
- <attribute name="label" translatable="yes">Editor</attribute>
- <attribute name="verb-icon-name">builder-editor-symbolic</attribute>
<attribute name="accel"><alt>1</attribute>
<attribute name="action">win.perspective</attribute>
+ <attribute name="id">perspective-menu-editor</attribute>
+ <attribute name="label" translatable="yes">Editor</attribute>
+ <attribute name="role">normal</attribute>
<attribute name="target">editor</attribute>
+ <attribute name="verb-icon-name">builder-editor-symbolic</attribute>
</item>
</section>
<section id="perspectives-menu-prefs-section">
<item>
+ <attribute name="accel"><alt>comma</attribute>
+ <attribute name="action">win.perspective</attribute>
<attribute name="id">perspective-menu-build-prefs</attribute>
<attribute name="label" translatable="yes">Build Preferences</attribute>
- <attribute name="verb-icon-name">builder-build-configure-symbolic</attribute>
- <attribute name="action">win.perspective</attribute>
+ <attribute name="role">normal</attribute>
<attribute name="target">buildperspective</attribute>
- <attribute name="accel"><alt>comma</attribute>
+ <attribute name="verb-icon-name">builder-build-configure-symbolic</attribute>
</item>
<item>
+ <attribute name="accel"><primary>comma</attribute>
+ <attribute name="action">win.perspective</attribute>
<attribute name="id">perspective-menu-prefs</attribute>
<attribute name="label" translatable="yes">Preferences</attribute>
- <attribute name="verb-icon-name">preferences-system-symbolic</attribute>
- <attribute name="action">win.perspective</attribute>
+ <attribute name="role">normal</attribute>
<attribute name="target">preferences</attribute>
- <attribute name="accel"><primary>comma</attribute>
+ <attribute name="verb-icon-name">preferences-system-symbolic</attribute>
</item>
</section>
</menu>
diff --git a/plugins/sysprof/gtk/menus.ui b/plugins/sysprof/gtk/menus.ui
index 80af284..e00a3f3 100644
--- a/plugins/sysprof/gtk/menus.ui
+++ b/plugins/sysprof/gtk/menus.ui
@@ -11,13 +11,14 @@
<menu id="perspectives-menu">
<section id="perspectives-menu-section">
<item>
- <attribute name="id">perspective-menu-profiler</attribute>
- <attribute name="after">perspective-menu-editor</attribute>
- <attribute name="label" translatable="yes">Profiler</attribute>
- <attribute name="verb-icon-name">utilities-system-monitor-symbolic</attribute>
<attribute name="accel"><alt>3</attribute>
<attribute name="action">win.perspective</attribute>
+ <attribute name="after">perspective-menu-editor</attribute>
+ <attribute name="id">perspective-menu-profiler</attribute>
+ <attribute name="label" translatable="yes">Profiler</attribute>
+ <attribute name="role">normal</attribute>
<attribute name="target">profiler</attribute>
+ <attribute name="verb-icon-name">utilities-system-monitor-symbolic</attribute>
</item>
</section>
</menu>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]