[tasks/gnome3: 15/17] main: use the GTK+ 3 license API in the About dialog



commit e7fc45f260712421b3bc62119edb9b599e2a50a8
Author: Ross Burton <ross linux intel com>
Date:   Thu Apr 28 09:17:25 2011 +0100

    main: use the GTK+ 3 license API in the About dialog

 src/gtk/main.c |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/src/gtk/main.c b/src/gtk/main.c
index 1a02755..6c8a0f1 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -442,25 +442,18 @@ on_about_action (GtkAction *action, gpointer user_data)
     "Jakub Steiner <jimmac ximian com>",
     NULL,
   };
-  char *license = g_strdup_printf ("%s\n\n%s\n\n%s",
-                                   g_get_application_name (),
-                                   "Copyright \302\251 2007-2010 Intel Corp",
-                                   _("This program comes with ABSOLUTELY NO WARRANTY; for details, visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html";));
-
   gtk_show_about_dialog (GTK_WINDOW (window),
-                         "version", VERSION,
+                         "title", _("About Tasks"),
                          "logo-icon-name", "tasks",
-                         "copyright", "Copyright \302\251 2007-2010 Intel Corp",
+                         "version", VERSION,
                          "authors", authors,
                          "artists", artists,
                          "translator-credits", _("translator-credits"),
-                         "license", license,
-                         "wrap-license", TRUE,
+                         "copyright", "Copyright \302\251 2007-2010 Intel Corp",
+                         "license-type", GTK_LICENSE_GPL_2_0,
                          "website", "http://pimlico-project.org";,
                          "website-label", _("The Pimlico Project"),
                          NULL);
-
-  g_free (license);
 }
 
 static const GtkActionEntry actions[] =



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