[mutter] Remove the year number from the copyright string into a constant
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Remove the year number from the copyright string into a constant
- Date: Wed, 10 Feb 2010 19:39:55 +0000 (UTC)
commit c588e173f83c5ecf57be3ad989d5eb97a898ef47
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Feb 5 20:02:59 2009 +0000
Remove the year number from the copyright string into a constant
(This is inspired by Metacity commit 45cbaa2 by Thomas Thurman, but
much simpler - the use of g_date_strftime("%Y") ended up being just
%d for all 90+ current translations)
src/core/main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index 49b7761..1e0cac2 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -124,11 +124,13 @@ log_handler (const gchar *log_domain,
static void
version (void)
{
+ const int latest_year = 2010;
+
g_print (_("mutter %s\n"
- "Copyright (C) 2001-2008 Havoc Pennington, Red Hat, Inc., and others\n"
+ "Copyright (C) 2001-%d Havoc Pennington, Red Hat, Inc., and others\n"
"This is free software; see the source for copying conditions.\n"
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"),
- VERSION);
+ VERSION, latest_year);
exit (0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]