mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
528de90ab7
commit
ef6413a2a8
1 changed files with 5 additions and 0 deletions
5
ui/gtk.c
5
ui/gtk.c
|
|
@ -84,6 +84,11 @@ static inline void gdk_drawable_get_size(GdkWindow *w, gint *ww, gint *wh)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !GTK_CHECK_VERSION(2, 20, 0)
|
||||||
|
#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct VirtualConsole
|
typedef struct VirtualConsole
|
||||||
{
|
{
|
||||||
GtkWidget *menu_item;
|
GtkWidget *menu_item;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue