[gtk/wip/chergert/spellcheck: 3/9] spellcheck: reuse helper for languages list
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/spellcheck: 3/9] spellcheck: reuse helper for languages list
- Date: Mon, 15 Mar 2021 23:13:09 +0000 (UTC)
commit d7a23f3f76bdd06c6da9b10d26a3534ad1fbe77b
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]