Fix running with GTK+ 2.22 or earlier when built with 2.24
Previous versions define gdk_window_get_visual as gdk_drawable_get_visual
This commit is contained in:
parent
492d8318d6
commit
413d7c220c
@ -387,6 +387,8 @@ static inline gboolean wx_gtk_window_has_group(GtkWindow* window)
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// the following were introduced in GTK+ 2.24
|
// the following were introduced in GTK+ 2.24
|
||||||
|
|
||||||
|
#define gdk_window_get_visual gdk_drawable_get_visual
|
||||||
|
|
||||||
static inline GdkDisplay* wx_gdk_window_get_display(GdkWindow* window)
|
static inline GdkDisplay* wx_gdk_window_get_display(GdkWindow* window)
|
||||||
{
|
{
|
||||||
return gdk_drawable_get_display(window);
|
return gdk_drawable_get_display(window);
|
||||||
|
Loading…
Reference in New Issue
Block a user