From 0f6f310c7194717cd9f44f382e272b87d38e3f82 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Sun, 22 Feb 2009 14:12:21 +0000 Subject: [PATCH] Linux: Show the version number for release builds. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@569 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Linux/AboutDlg.cpp | 12 ++++++------ pcsx2/Linux/LnxMain.cpp | 9 +++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pcsx2/Linux/AboutDlg.cpp b/pcsx2/Linux/AboutDlg.cpp index d5703ed4a3..e37fde6234 100644 --- a/pcsx2/Linux/AboutDlg.cpp +++ b/pcsx2/Linux/AboutDlg.cpp @@ -42,12 +42,12 @@ void OnHelp_About(GtkMenuItem *menuitem, gpointer user_data) Label = lookup_widget(AboutDlg, "GtkAbout_LabelVersion"); // Include the SVN revision - if (SVN_REV != 0) - sprintf(str, _("PCSX2 For Linux\nVersion %s %s\n"), PCSX2_VERSION, SVN_REV); - else - //Use this instead for a non-svn version - sprintf(str, _("PCSX2 For Linux\nVersion %s\n"), PCSX2_VERSION); - +#ifdef PCSX2_DEVBUILD + sprintf(str, _("PCSX2 For Linux\nVersion %s %s\n"), PCSX2_VERSION, SVN_REV); +#else + //Use this instead for a non-svn version + sprintf(str, _("PCSX2 For Linux\nVersion %s\n"), PCSX2_VERSION); +#endif gtk_label_set_text(GTK_LABEL(Label), str); Label = lookup_widget(AboutDlg, "GtkAbout_LabelAuthors"); diff --git a/pcsx2/Linux/LnxMain.cpp b/pcsx2/Linux/LnxMain.cpp index a76505b9af..95874e67e4 100644 --- a/pcsx2/Linux/LnxMain.cpp +++ b/pcsx2/Linux/LnxMain.cpp @@ -228,11 +228,12 @@ void StartGui() add_pixmap_directory(".pixmaps"); MainWindow = create_MainWindow(); - if (SVN_REV != 0) - gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION" "SVN_REV); - else - gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION); +#ifdef PCSX2_DEVBUILD + gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION" "SVN_REV); +#else + gtk_window_set_title(GTK_WINDOW(MainWindow), "PCSX2 "PCSX2_VERSION); +#endif // status bar pStatusBar = gtk_statusbar_new(); gtk_box_pack_start(GTK_BOX(lookup_widget(MainWindow, "status_box")), pStatusBar, TRUE, TRUE, 0);