diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2010-08-10 00:00:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-08-10 00:00:15 -0400 |
commit | 73030c462f19b46d352fdfae6c207eb5dfcdf6d4 (patch) | |
tree | aa8dadc437641e2485306ea7935c125c6df7ca08 /demos | |
parent | 79ef5de5056fc44ba87e5f2684250db1c8575a2f (diff) | |
download | gtk+-73030c462f19b46d352fdfae6c207eb5dfcdf6d4.tar.gz |
about: Add :license-type property
The :license-type property of GtkAboutDialog allows using a symbolic
enumeration value that will construct a placeholder license preamble
linking to a specific URL. This allows localization of the licensing
text without using a translation of the actual license, since it would
not be valid.
Bug 336225.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/appwindow.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index 2f62d63df7..168395aaf3 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -109,22 +109,6 @@ about_cb (GtkAction *action, NULL }; - const gchar *license = - "This library is free software; you can redistribute it and/or\n" - "modify it under the terms of the GNU Library General Public License as\n" - "published by the Free Software Foundation; either version 2 of the\n" - "License, or (at your option) any later version.\n" - "\n" - "This library is distributed in the hope that it will be useful,\n" - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n" - "Library General Public License for more details.\n" - "\n" - "You should have received a copy of the GNU Library General Public\n" - "License along with the Gnome Library; see the file COPYING.LIB. If not,\n" - "write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,\n" - "Boston, MA 02111-1307, USA.\n"; - pixbuf = NULL; transparent = NULL; filename = demo_find_file ("gtk-logo-rgb.gif", NULL); @@ -142,7 +126,7 @@ about_cb (GtkAction *action, "program-name", "GTK+ Code Demos", "version", PACKAGE_VERSION, "copyright", "(C) 1997-2009 The GTK+ Team", - "license", license, + "license-type", GTK_LICENSE_LGPL_2_1, "website", "http://www.gtk.org", "comments", "Program to demonstrate GTK+ functions.", "authors", authors, |