Commit c9b03ef8 authored by Nils Philippsen's avatar Nils Philippsen

app: use last git commit year for copyright label

parent 37d98767
......@@ -25,8 +25,9 @@
#define GIMP_NAME \
_("GNU Image Manipulation Program")
/* The year of the last commit (UTC) will be inserted into this string. */
#define GIMP_COPYRIGHT \
_("Copyright © 1995-2010\n" \
_("Copyright © 1995-%s\n" \
"Spencer Kimball, Peter Mattis and the GIMP Development Team")
#define GIMP_LICENSE \
......
......@@ -33,6 +33,7 @@
#include "pdb/gimppdb.h"
#include "about.h"
#include "git-version.h"
#include "about-dialog.h"
#include "authors.h"
......@@ -89,6 +90,7 @@ about_dialog_create (GimpContext *context)
GtkWidget *container;
GdkPixbuf *pixbuf;
GList *children;
gchar *copyright;
dialog = g_new0 (GimpAboutDialog, 1);
......@@ -96,13 +98,15 @@ about_dialog_create (GimpContext *context)
pixbuf = about_dialog_load_logo ();
copyright = g_strdup_printf(GIMP_COPYRIGHT, GIMP_GIT_LAST_COMMIT_YEAR);
widget = g_object_new (GTK_TYPE_ABOUT_DIALOG,
"role", "about-dialog",
"window-position", GTK_WIN_POS_CENTER,
"title", _("About GIMP"),
"program-name", GIMP_ACRONYM,
"version", GIMP_VERSION,
"copyright", GIMP_COPYRIGHT,
"copyright", copyright,
"comments", GIMP_NAME,
"license", GIMP_LICENSE,
"wrap-license", TRUE,
......@@ -119,6 +123,8 @@ about_dialog_create (GimpContext *context)
if (pixbuf)
g_object_unref (pixbuf);
g_free(copyright);
dialog->dialog = widget;
g_object_add_weak_pointer (G_OBJECT (widget), (gpointer) &dialog);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment