]> Pileus Git - ~andy/gtk/commitdiff
Improve the looks of the license text in GtkAboutDialog
authorClaudio Saavedra <csaavedra@igalia.com>
Thu, 12 Aug 2010 10:15:20 +0000 (13:15 +0300)
committerClaudio Saavedra <csaavedra@igalia.com>
Thu, 12 Aug 2010 11:23:58 +0000 (14:23 +0300)
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

index b16ed8c82dc32457d889f0b552e8ed9d54402313..acf1aff93a1f85d718eea8f6d4615f7d0747b562 100644 (file)
@@ -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);