summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-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;