From: John Darrington Date: Thu, 21 Jan 2016 18:56:07 +0000 (+0100) Subject: Append a warning to the window title bar for odd versions. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=cbe32a5532404f5046f662f8df4ad3f6b3eb7895 Append a warning to the window title bar for odd versions. --- diff --git a/src/ui/gui/psppire-window.c b/src/ui/gui/psppire-window.c index 8e34c214be..c0268e67b9 100644 --- a/src/ui/gui/psppire-window.c +++ b/src/ui/gui/psppire-window.c @@ -108,6 +108,11 @@ psppire_window_set_title (PsppireWindow *window) g_string_append_printf (title, "PSPPIRE %s", window->description); + int minor = 1; + sscanf (bare_version, "%*d.%d.%*d", &minor); + if (minor % 2) + g_string_append (title, " - UNRELEASED TEST SOFTWARE! NOT FOR PRODUCTION USE."); + gtk_window_set_title (GTK_WINDOW (window), title->str); g_string_free (title, TRUE);