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



commit 7f31b81abb7798a8b21698ba052a98b0e92f6148
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 de0e2f00f..c3f1f9b1f 100644
--- a/src/libide/gui/ide-preferences-builtin.c
+++ b/src/libide/gui/ide-preferences-builtin.c
@@ -283,10 +283,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]