[gnome-builder/gnome-builder-41] prefs: fix hidden languages in preferences



commit d9d5db9069829ef04babc8606e414d2678a99d63
Author: Christian Hergert <chergert redhat com>
Date:   Sun Dec 19 16:19:57 2021 -0800

    prefs: fix hidden languages in preferences

 src/libide/gui/ide-preferences-builtin.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-preferences-builtin.c b/src/libide/gui/ide-preferences-builtin.c
index 36a39a69d..56cfc4143 100644
--- a/src/libide/gui/ide-preferences-builtin.c
+++ b/src/libide/gui/ide-preferences-builtin.c
@@ -282,10 +282,10 @@ ide_preferences_builtin_register_languages (DzlPreferences *preferences)
       const gchar *name;
       const gchar *section;
 
-      if (dzl_str_equal0 (language_ids [i], "def"))
+      language = gtk_source_language_manager_get_language (manager, language_ids [i]);
+      if (gtk_source_language_get_hidden (language))
         continue;
 
-      language = gtk_source_language_manager_get_language (manager, language_ids [i]);
       name = gtk_source_language_get_name (language);
       section = gtk_source_language_get_section (language);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]