From dc5b68bddc48a699d4b803a33600039307fae5bf Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 13 Aug 2003 17:23:49 +0000 Subject: [PATCH] pop up a warning dialog if the GTK+ version is < 2.2.2. Forgot to commit 2003-08-13 Michael Natterer * app/gui/gui.c (gui_restore): pop up a warning dialog if the GTK+ version is < 2.2.2. Forgot to commit this at GimpCon... --- ChangeLog | 9 +++++++++ app/gui/gui.c | 14 +++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 68d7ae87e7..71b8fd9019 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-13 Michael Natterer + + * app/gui/gui.c (gui_restore): pop up a warning dialog if the + GTK+ version is < 2.2.2. Forgot to commit this at GimpCon... + 2003-08-13 Jakub Steiner * ./data/images/gimp_splash.png: new post-cccamp splash @@ -22,6 +27,7 @@ changes from July which caused GIF-loading bogosity. 2003-08-12 Ville Pätsi + * gimp.spec.in: Disable separate debug packages 2003-08-12 Henrik Brix Andersen @@ -88,13 +94,16 @@ * NEWS: Updated NEWS file for 1.3.18. 2003-08-10 Ville Pätsi + * gimp.spec.in: Revert package name change. Causes too much trouble. 2003-08-10 Ville Pätsi + * gimp.spec.in: Changed package name from gimp to gimp1.3, to keep combatibility with GIMP 1.2 packages. 2003-08-10 Ville Pätsi + * configure.in: Added gimp.spec. * gimp.spec.in: Brought up to date. diff --git a/app/gui/gui.c b/app/gui/gui.c index a29b53a29c..a585d6257c 100644 --- a/app/gui/gui.c +++ b/app/gui/gui.c @@ -141,7 +141,7 @@ gui_libs_init (gint *argc, gui_get_background_func); g_type_class_ref (GIMP_TYPE_COLOR_SELECT); - + return TRUE; } @@ -338,6 +338,18 @@ gui_restore (Gimp *gimp, g_signal_connect_after (gimp, "exit", G_CALLBACK (gui_exit_finish_callback), NULL); + +#ifdef __GNUC__ +#warning FIXME: remove this as soon as we depend on GTK+ >= 2.2.2 +#endif + if (! GTK_CHECK_VERSION (2, 2, 2)) + gimp_message_box (GIMP_STOCK_WILBER_EEK, NULL, + "Please upgrade your GTK+ installation!\n\n" + "The GTK+ version you are using is too old.\n" + "Please upgrade to GTK+ version 2.2.2 or better\n" + "or your extended input devices (tablets) will\n" + "not work at all!", + NULL, NULL); } void