[gnome-builder] libide/gui: remove some references to show-map
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: remove some references to show-map
- Date: Thu, 28 Jul 2022 23:03:43 +0000 (UTC)
commit 2a3fac5528c71ec6aec9d30cb83aa6c2d5a282ee
Author: Christian Hergert <chergert redhat com>
Date: Thu Jul 28 16:03:13 2022 -0700
libide/gui: remove some references to show-map
This is just general cleanup and updating an idea for using gmenu for
preferences. We still may land on something different, but it's clear
that we need to figure out something better than we got.
src/libide/gui/ide-preferences-builtin.c | 4 ----
src/plugins/buildui/gtk/preferences.ui | 25 +++++++++++++++++++++----
2 files changed, 21 insertions(+), 8 deletions(-)
---
diff --git a/src/libide/gui/ide-preferences-builtin.c b/src/libide/gui/ide-preferences-builtin.c
index 490a3178f..726343a95 100644
--- a/src/libide/gui/ide-preferences-builtin.c
+++ b/src/libide/gui/ide-preferences-builtin.c
@@ -195,10 +195,6 @@ ide_preferences_builtin_register_editor (DzlPreferences *preferences)
dzl_preferences_add_switch (preferences, "editor", "highlight", "org.gnome.builder.editor",
"highlight-current-line", NULL, NULL, _("Current line"), _("Make current line stand out with highlights"),
NULL, 0);
dzl_preferences_add_switch (preferences, "editor", "highlight", "org.gnome.builder.editor",
"highlight-matching-brackets", NULL, NULL, _("Matching brackets"), _("Highlight matching brackets based on
cursor position"), NULL, 1);
- dzl_preferences_add_list_group (preferences, "editor", "overview", _("Code Overview"), GTK_SELECTION_NONE,
100);
- dzl_preferences_add_switch (preferences, "editor", "overview", "org.gnome.builder.editor", "show-map",
NULL, NULL, _("Show overview map"), _("A zoomed out view to enhance navigating source code"), NULL, 0);
- dzl_preferences_add_switch (preferences, "editor", "overview", "org.gnome.builder.editor",
"auto-hide-map", NULL, NULL, _("Automatically hide overview map"), _("Automatically hide map when editor
loses focus"), NULL, 1);
-
dzl_preferences_add_list_group (preferences, "editor", "draw-spaces", _("Visible Whitespace Characters"),
GTK_SELECTION_NONE, 400);
dzl_preferences_add_radio (preferences, "editor", "draw-spaces", "org.gnome.builder.editor",
"draw-spaces", NULL, "\"space\"", _("Spaces"), NULL, NULL, 0);
dzl_preferences_add_radio (preferences, "editor", "draw-spaces", "org.gnome.builder.editor",
"draw-spaces", NULL, "\"tab\"", _("Tabs"), NULL, NULL, 1);
diff --git a/src/plugins/buildui/gtk/preferences.ui b/src/plugins/buildui/gtk/preferences.ui
index 9a9389619..ebe5c11b0 100644
--- a/src/plugins/buildui/gtk/preferences.ui
+++ b/src/plugins/buildui/gtk/preferences.ui
@@ -82,10 +82,27 @@
<attribute name="role">check</attribute>
</item>
<item>
- <attribute name="action">context.settings.app:org.gnome.builder.editor.show-map</attribute>
- <attribute name="label" translatable="yes">Show Overview Map</attribute>
- <attribute name="description" translatable="yes">Display an overview map instead of a
scrollbar</attribute>
- <attribute name="role">check</attribute>
+ <link name="combo" id="app-visual-appearance-map-policy"/>
+ </item>
+ </menu>
+ <menu id="app-visual-appearance-map-policy">
+ <item>
+ <attribute name="action">context.settings.app:org.gnome.builder.editor.map-policy</attribute>
+ <attribute name="target" type="s">'never'</attribute>
+ <attribute name="label" translatable="yes">Never</attribute>
+ <attribute name="description" translatable="yes">Overview map is never displayed</attribute>
+ </item>
+ <item>
+ <attribute name="action">context.settings.app:org.gnome.builder.editor.map-policy</attribute>
+ <attribute name="target" type="s">'always'</attribute>
+ <attribute name="label" translatable="yes">Always</attribute>
+ <attribute name="description" translatable="yes">Overview map is always displayed</attribute>
+ </item>
+ <item>
+ <attribute name="action">context.settings.app:org.gnome.builder.editor.map-policy</attribute>
+ <attribute name="target" type="s">'auto'</attribute>
+ <attribute name="label" translatable="yes">Auto</attribute>
+ <attribute name="description" translatable="yes">Overview map is automatically displayed based on user
input</attribute>
</item>
</menu>
<menu id="app-visual-appearance-interface">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]