summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-15 11:19:24 +0200
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-15 11:19:24 +0200
commitacf61455a347571a66ec6db18c9f0aa1e6f7441d (patch)
tree7f09c842317b2f1de2e4425fce345fd623c6cb24
parente04d3e9a18026b77ae863fb7165e80bde540dc53 (diff)
viewer: fix build on 'old' GTK2
Debian lenny has gtk2 2.12.12, which is missing gtk_widget_get_window. Provide our own function if GTK2 <= 2.12 . Highly inspired from: http://osdir.com/ml/svn-commits-list/2009-08/msg00725.html
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 421ea6c..dafd819 100644
--- a/src/util.h
+++ b/src/util.h
@@ -27,6 +27,9 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
+#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION <= 12)
+#define gtk_widget_get_window(widget) ((widget)->window)
+#endif
extern gboolean doDebug;