Provide trivial GDK_IS_X11_DISPLAY() definition for GTK+2.

This will be useful for upcoming patches using it to fix problems with GTK+ 3
without breaking GTK+ 2 compilation.

See #16688.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-11-19 13:29:07 +00:00
parent 7170eca0f7
commit 45e972943f

View File

@ -517,5 +517,9 @@ static inline void wx_gtk_widget_get_preferred_size(GtkWidget* widget, GtkRequis
}
#define gtk_widget_get_preferred_size wx_gtk_widget_get_preferred_size
// There is no equivalent in GTK+ 2, but it's not needed there anyhow as X11
// backend can only work with X11 displays in that version.
#define GDK_IS_X11_DISPLAY(dpy) (TRUE)
#endif // !__WXGTK3__
#endif // _WX_GTK_PRIVATE_COMPAT_H_