[gnome-builder/wip/gtk4-port] plugins/editorui: only add languages to project options
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/editorui: only add languages to project options
- Date: Wed, 20 Apr 2022 00:42:38 +0000 (UTC)
commit 41b725a003dddb0654aed77b8b1c4133df5411bb
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 19 17:42:32 2022 -0700
plugins/editorui: only add languages to project options
This still needs to setup override paths for the languages.
src/plugins/editorui/gbp-editorui-preferences-addin.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/editorui/gbp-editorui-preferences-addin.c
b/src/plugins/editorui/gbp-editorui-preferences-addin.c
index af8c9798a..23e07ed3b 100644
--- a/src/plugins/editorui/gbp-editorui-preferences-addin.c
+++ b/src/plugins/editorui/gbp-editorui-preferences-addin.c
@@ -291,10 +291,15 @@ gbp_editorui_preferences_addin_load (IdePreferencesAddin *addin,
g_assert (GBP_IS_EDITORUI_PREFERENCES_ADDIN (self));
g_assert (IDE_IS_PREFERENCES_WINDOW (window));
- ide_preferences_window_add_groups (window, groups, G_N_ELEMENTS (groups), NULL);
- ide_preferences_window_add_items (window, items, G_N_ELEMENTS (items), window, NULL);
- ide_preferences_window_add_item (window, "appearance", "preview", "scheme", 0,
- ide_preferences_builtin_add_schemes, window, NULL);
+ if (ide_preferences_window_get_mode (window) == IDE_PREFERENCES_MODE_APPLICATION)
+ {
+ ide_preferences_window_add_groups (window, groups, G_N_ELEMENTS (groups), NULL);
+ ide_preferences_window_add_items (window, items, G_N_ELEMENTS (items), window, NULL);
+ ide_preferences_window_add_item (window, "appearance", "preview", "scheme", 0,
+ ide_preferences_builtin_add_schemes, window, NULL);
+ }
+
+ /* TODO: Apply prefix for project overrides! */
gbp_editorui_preferences_addin_add_languages (window);
IDE_EXIT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]