[gtk/wip/chergert/spellcheck: 29/40] spellcheck: reuse helper for languages list




commit 78f970175db064d3bf7ad1584cd19f829500d67a
Author: Christian Hergert <chergert redhat com>
Date:   Mon Mar 15 15:05:39 2021 -0700

    spellcheck: reuse helper for languages list

 gtk/gtkspellcheck.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkspellcheck.c b/gtk/gtkspellcheck.c
index 4b72177c6d..8ba3867131 100644
--- a/gtk/gtkspellcheck.c
+++ b/gtk/gtkspellcheck.c
@@ -251,9 +251,7 @@ gtk_spell_checker_new_for_language (const char *language)
 {
   const char *languages[] = { language, NULL };
 
-  return g_object_new (GTK_TYPE_SPELL_CHECKER,
-                       "languages", languages,
-                       NULL);
+  return gtk_spell_checker_new_for_languages (languages);
 }
 
 /**


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