From e1afbdf98986678c42673ecb76224790f355926a Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 27 Jun 2006 01:11:29 +0000 Subject: [PATCH] Added a check of compatible gtk version numbers at start up. --- src/ui/gui/psppire.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.30.2