[gtk+] Improve the looks of the license text in GtkAboutDialog



commit e4a83370c4026d6cd1a1912eb2febe288c974d2b
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Aug 12 13:15:20 2010 +0300

    Improve the looks of the license text in GtkAboutDialog
    
    It is not safe to assume that copyright text in applications is
    one liner, therefore it's better to split it from the program name.
    
    Also, the license text should be in a paragraph of its own, so
    add an extra '\n' above it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=626514

 gtk/gtkaboutdialog.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index b16ed8c..acf1aff 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2551,15 +2551,19 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
 
           /* compose the new license string as:
            *
-           *   <program-name>  <copyright>\n
+           *   <program-name>\n
+           *   <copyright line 1>\n
+           *   ...
+           *   <copyright line n>\n
+           *   \n
            *   license preamble + URL
            *
            */
           str = g_string_sized_new (256);
           g_string_append (str, priv->name);
-          g_string_append (str, "  ");
-          g_string_append (str, priv->copyright);
           g_string_append (str, "\n");
+          g_string_append (str, priv->copyright);
+          g_string_append (str, "\n\n");
           g_string_append_printf (str, gettext (gtk_license_preamble), url);
 
           g_free (priv->license);



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