[Gnucash-changes] r13754 - gnucash/trunk - Include the svn revision number in the about dialog.

David Hampton hampton at cvs.gnucash.org
Fri Apr 7 19:39:54 EDT 2006


Author: hampton
Date: 2006-04-07 19:39:53 -0400 (Fri, 07 Apr 2006)
New Revision: 13754
Trac: http://svn.gnucash.org/trac/changeset/13754

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Include the svn revision number in the about dialog.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-04-07 19:46:36 UTC (rev 13753)
+++ gnucash/trunk/ChangeLog	2006-04-07 23:39:53 UTC (rev 13754)
@@ -1,3 +1,8 @@
+2006-04-07  David Hampton  <hampton at employees.org>
+
+	* src/gnome-utils/gnc-main-window.c: Include the svn revision
+	number in the about dialog.
+
 2006-04-07  Derek Atkins  <derek at ihtfp.com>
 
 	* lib/libqof/qof/qof.h:  QOF requires <glib.h>

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-04-07 19:46:36 UTC (rev 13753)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2006-04-07 23:39:53 UTC (rev 13754)
@@ -3211,10 +3211,10 @@
 static void
 gnc_main_window_cmd_help_about (GtkAction *action, GncMainWindow *window)
 {
-	const gchar *message = _("The GnuCash personal finance manager.\n"
-				 "The GNU way to manage your money!\n");
+	const gchar *fixed_message = _("The GnuCash personal finance manager. "
+				       "The GNU way to manage your money!");
 	const gchar *copyright = "© 1998-2005 Linas Vepstas";
-	gchar **authors, **documenters, *license;
+	gchar **authors, **documenters, *license, *message;
 	GdkPixbuf *logo;
 
 	logo = gnc_gnome_get_gdkpixbuf ("appicon.png");
@@ -3222,7 +3222,14 @@
 	authors = get_file_strsplit("doc/AUTHORS");
 	documenters = get_file_strsplit("doc/DOCUMENTERS");
 	license = get_file("doc/LICENSE");
-
+#ifdef GNUCASH_SVN
+	/* Development version */
+	message = g_strdup_printf(_("%s  This copy was built from svn r%s on %s."),
+				  fixed_message, GNUCASH_SVN_REV, GNUCASH_BUILD_DATE);
+#else
+	message = g_strdup_printf(_("%s  This copy was built from r%s on %s."),
+				  fixed_message, GNUCASH_SVN_REV, GNUCASH_BUILD_DATE);
+#endif
 	gtk_show_about_dialog
 		     (GTK_WINDOW (window),
 		      "authors", authors,
@@ -3237,6 +3244,7 @@
 		      "website", "http://www.gnucash.org",
 		      (gchar *)NULL);
 
+	g_free(message);
 	if (license)     g_free(license);
 	if (documenters) g_strfreev(documenters);
 	if (authors)     g_strfreev(authors);



More information about the gnucash-changes mailing list