diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-08-15 11:19:24 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-08-15 11:19:24 +0200 |
commit | acf61455a347571a66ec6db18c9f0aa1e6f7441d (patch) | |
tree | 7f09c842317b2f1de2e4425fce345fd623c6cb24 | |
parent | e04d3e9a18026b77ae863fb7165e80bde540dc53 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |