[gnome-builder] plugins/editorui: elevate formatting menu
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/editorui: elevate formatting menu
- Date: Thu, 29 Sep 2022 02:51:54 +0000 (UTC)
commit 44f1111a582cbf2a794976641bf2ee59fb202bcd
Author: Christian Hergert <chergert redhat com>
Date: Wed Sep 28 19:50:11 2022 -0700
plugins/editorui: elevate formatting menu
That way people are more likely to see it and what they can do with
formatting.
src/libide/sourceview/gtk/menus.ui | 5 +++++
src/plugins/comment-code/gtk/menus.ui | 4 ++--
src/plugins/retab/gtk/menus.ui | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/sourceview/gtk/menus.ui b/src/libide/sourceview/gtk/menus.ui
index 5b13d0011..070ccabb3 100644
--- a/src/libide/sourceview/gtk/menus.ui
+++ b/src/libide/sourceview/gtk/menus.ui
@@ -135,10 +135,15 @@
<attribute name="accel"><control><alt>d</attribute>
</item>
</section>
+ </submenu>
+ <submenu id="ide-source-view-popup-menu-format-submenu">
+ <attribute name="label" translatable="yes">_Formatting</attribute>
<section id="ide-source-view-popup-menu-format-section">
<attribute name="page" translatable="yes">Text Editor</attribute>
<attribute name="group" translatable="yes">Formatting</attribute>
</section>
+ <section id="ide-source-view-popup-menu-reformat-section"/>
+ <section id="ide-source-view-popup-menu-comment-section"/>
</submenu>
</section>
<section id="ide-source-view-popup-menu-jump-section">
diff --git a/src/plugins/comment-code/gtk/menus.ui b/src/plugins/comment-code/gtk/menus.ui
index 9f96a8fb6..e14fb514a 100644
--- a/src/plugins/comment-code/gtk/menus.ui
+++ b/src/plugins/comment-code/gtk/menus.ui
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<interface>
- <menu id="ide-source-view-popup-menu-selection-submenu">
- <section id="ide-source-view-popup-menu-selection-comment-code-section">
+ <menu id="ide-source-view-popup-menu-format-submenu">
+ <section id="ide-source-view-popup-menu-comment-section">
<attribute name="after">ide-source-view-popup-menu-line-section</attribute>
<attribute name="page" translatable="yes">Text Editor</attribute>
<attribute name="group" translatable="yes">Code Comments</attribute>
diff --git a/src/plugins/retab/gtk/menus.ui b/src/plugins/retab/gtk/menus.ui
index c591daf9d..915cb906e 100644
--- a/src/plugins/retab/gtk/menus.ui
+++ b/src/plugins/retab/gtk/menus.ui
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<interface>
- <menu id="ide-source-view-popup-menu-format-section">
+ <menu id="ide-source-view-popup-menu-reformat-section">
<item>
<attribute name="label" translatable="yes">_Reformat Tabs</attribute>
<attribute name="action">page.retab.retab</attribute>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]