aboutsummaryrefslogtreecommitdiff
path: root/ui/gtk.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-02-25 15:20:45 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-26 13:29:55 -0600
commitef6413a2a833abe24aae072bd59c7434969fc59d (patch)
treeeae76cf29f1dc4413502c25f92cee257c686a326 /ui/gtk.c
parent528de90ab7133e22df7c1da4632a6dcd525e88f0 (diff)
downloadqemu-ef6413a2a833abe24aae072bd59c7434969fc59d.zip
qemu-ef6413a2a833abe24aae072bd59c7434969fc59d.tar.gz
qemu-ef6413a2a833abe24aae072bd59c7434969fc59d.tar.bz2
Add compat macro for gtk_widget_get_realized
The gtk_widget_get_realized method only arrived in GTK 2.20, so defined a compat macro for earlier GTK Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1361805646-6425-13-git-send-email-berrange@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/gtk.c')
-rw-r--r--ui/gtk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index fa4c3b0..82f0bb2 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -84,6 +84,11 @@ static inline void gdk_drawable_get_size(GdkWindow *w, gint *ww, gint *wh)
}
#endif
+#if !GTK_CHECK_VERSION(2, 20, 0)
+#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget)
+#endif
+
+
typedef struct VirtualConsole
{
GtkWidget *menu_item;