diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2013-02-25 15:20:45 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-26 13:29:55 -0600 |
commit | ef6413a2a833abe24aae072bd59c7434969fc59d (patch) | |
tree | eae76cf29f1dc4413502c25f92cee257c686a326 /ui/gtk.c | |
parent | 528de90ab7133e22df7c1da4632a6dcd525e88f0 (diff) |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |