summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-03-26 14:31:48 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-03-26 15:07:16 +0100
commit1e810a543ea36e98a7bf807f40fbc463c49a6c64 (patch)
treedaf94c0d4c76cf4ee712885c9c96b0cf567d7f58 /src
parent006fcf859ccb7d92047e88784ac0972b8a7a784e (diff)
Add gtk_widget_get_realized() define for old gtk+
Fix build with gtk < 2.20
Diffstat (limited to 'src')
-rw-r--r--src/virt-gtk-compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/virt-gtk-compat.h b/src/virt-gtk-compat.h
index 7b10b08..2a11872 100644
--- a/src/virt-gtk-compat.h
+++ b/src/virt-gtk-compat.h
@@ -53,6 +53,12 @@ G_BEGIN_DECLS
#define GDK_F12 GDK_KEY_F12
#endif
+#if !GTK_CHECK_VERSION(3, 0, 0)
+#define gtk_widget_get_realized(widget) \
+ GTK_WIDGET_REALIZED(widget)
+#endif
+
+
G_END_DECLS
#endif /* _VIRT_GTK_COMPAT */