forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
cd00b0a490
commit
e4a83370c4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user