[gimp] app: fix building GUI language store instead of empty manual language...



commit b1f8f602292a70902f01b61e4edc11e70983c3a3
Author: Jehan <jehan girinstud io>
Date:   Tue Oct 3 23:37:21 2017 +0200

    app: fix building GUI language store instead of empty manual language...
    
    ... store.

 app/widgets/gimptranslationstore.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimptranslationstore.c b/app/widgets/gimptranslationstore.c
index ca6d935..b154538 100644
--- a/app/widgets/gimptranslationstore.c
+++ b/app/widgets/gimptranslationstore.c
@@ -116,7 +116,8 @@ gimp_translation_store_constructed (GObject *object)
 
   g_hash_table_iter_init (&lang_iter, lang_list);
 
-  if (sublist && GIMP_TRANSLATION_STORE (object)->empty_label)
+  if (GIMP_TRANSLATION_STORE (object)->manual_l18n &&
+      GIMP_TRANSLATION_STORE (object)->empty_label)
     {
       GIMP_LANGUAGE_STORE_GET_CLASS (object)->add (GIMP_LANGUAGE_STORE (object),
                                                    GIMP_TRANSLATION_STORE (object)->empty_label,
@@ -124,7 +125,7 @@ gimp_translation_store_constructed (GObject *object)
     }
   while (g_hash_table_iter_next (&lang_iter, &code, &name))
     {
-      if (! sublist ||
+      if (! GIMP_TRANSLATION_STORE (object)->manual_l18n ||
           g_list_find_custom (sublist, code, (GCompareFunc) g_strcmp0))
         {
           GIMP_LANGUAGE_STORE_GET_CLASS (object)->add (GIMP_LANGUAGE_STORE (object),


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