From: John Darrington Date: Tue, 27 Jun 2006 01:11:29 +0000 (+0000) Subject: Added a check of compatible gtk version numbers at start up. X-Git-Tag: v0.6.0~804 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1afbdf98986678c42673ecb76224790f355926a;p=pspp-builds.git Added a check of compatible gtk version numbers at start up. --- diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 21ba79b1..6e7c6e0a 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -81,8 +81,16 @@ main(int argc, char *argv[]) gchar *filename=0; GError *err = 0; + gchar *vers; gtk_init(&argc, &argv); + if ( (vers = gtk_check_version(GTK_MAJOR_VERSION, + GTK_MINOR_VERSION, + GTK_MICRO_VERSION)) ) + { + g_critical(vers); + } + /* gtk_init messes with the locale. So unset the bits we want to control ourselves */