app: use last git commit year for copyright label

This commit is contained in:
Nils Philippsen 2010-09-28 14:23:41 +02:00
parent 37d9876742
commit c9b03ef8ff
2 changed files with 9 additions and 2 deletions

View File

@ -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 \

View File

@ -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);