mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Include the svn revision number in the about dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13754 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
aaa13ff290
commit
3dacd15900
@ -1,3 +1,8 @@
|
||||
2006-04-07 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/gnome-utils/gnc-main-window.c: Include the svn revision
|
||||
number in the about dialog.
|
||||
|
||||
2006-04-07 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* lib/libqof/qof/qof.h: QOF requires <glib.h>
|
||||
|
@ -3211,10 +3211,10 @@ get_file_strsplit (const gchar *partial)
|
||||
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 @@ gnc_main_window_cmd_help_about (GtkAction *action, GncMainWindow *window)
|
||||
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 @@ gnc_main_window_cmd_help_about (GtkAction *action, GncMainWindow *window)
|
||||
"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);
|
||||
|
Loading…
Reference in New Issue
Block a user