[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] ui/gtk: fix build on GTK 2.18 and older
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH] ui/gtk: fix build on GTK 2.18 and older |
Date: |
Fri, 22 Feb 2013 07:51:30 -0600 |
Reported-by: Gerd Hoffman <address@hidden>
Suggested-by: Daniel Berrange <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
---
ui/gtk.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ui/gtk.c b/ui/gtk.c
index 5f91de4..46e30b9 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -122,6 +122,10 @@ typedef struct GtkDisplayState
static GtkDisplayState *global_state;
+#if !GTK_CHECK_VERSION(2, 18, 0)
+#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget)
+#endif
+
/** Utility Functions **/
static bool gd_is_grab_active(GtkDisplayState *s)
--
1.8.0
- [Qemu-devel] [PATCH] ui/gtk: fix build on GTK 2.18 and older,
Anthony Liguori <=