Reported-by: Gerd Hoffman <[email protected]>
Suggested-by: Daniel Berrange <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
---
 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


Reply via email to