[gtk+] Show translators properly in the new about dialog



commit 4cc76927b1e6d864f18e37b8f35aa5495392b56d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 22 00:31:05 2010 -0500

    Show translators properly in the new about dialog
    
    translator-credits is a single string, typically with newline-
    separated names.

 gtk/gtkaboutdialog.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 2e042bd..9edf0b6 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2373,12 +2373,11 @@ create_credits_page (GtkAboutDialog *about)
       strcmp (priv->translator_credits, "translator_credits") != 0 &&
       strcmp (priv->translator_credits, "translator-credits") != 0)
     {
-      gchar *translators[2];
-
-      translators[0] = priv->translator_credits;
-      translators[1] = NULL;
+      gchar **translators;
 
+      translators = g_strsplit (priv->translator_credits, "\n", 0);
       add_credits_section (about, GTK_GRID (grid), &row, _("Translated by"), translators);
+      g_strfreev (translators);
     }
 
   if (priv->artists != NULL)



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