Append a warning to the window title bar for odd versions.
[pspp] / src / ui / gui / psppire-window.c
index 8e34c214be3db729a4b5f7fb9d99eb35214e7b2c..c0268e67b9d87e53bb3f84f51772ca80ea2beec6 100644 (file)
@@ -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);