2018-11-16 00:42:29 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
|
|
|
|
2018-11-07 01:04:10 +01:00
|
|
|
#ifndef __GTK_2_3_COMPAT_H
|
|
|
|
#define __GTK_2_3_COMPAT_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <gdk/gdk.h>
|
2018-11-07 01:46:44 +01:00
|
|
|
#include <gdk/gdkkeysyms.h>
|
2018-11-07 01:04:10 +01:00
|
|
|
|
|
|
|
#if GTK_MAJOR_VERSION >= 3
|
2018-11-07 01:46:44 +01:00
|
|
|
|
|
|
|
#include <gdk/gdkkeysyms-compat.h>
|
|
|
|
|
2018-11-09 23:20:00 +01:00
|
|
|
#ifndef USE_WAYLAND
|
|
|
|
#undef GDK_WINDOWING_WAYLAND
|
|
|
|
#endif
|
|
|
|
|
2018-11-07 01:46:44 +01:00
|
|
|
#ifdef GDK_WINDOWING_WAYLAND
|
|
|
|
#include <gdk/gdkwayland.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else // GTK+ 2.0
|
|
|
|
|
2018-11-07 01:04:10 +01:00
|
|
|
#define GDK_WINDOWING_X11
|
|
|
|
#define GDK_IS_X11_WINDOW(window) TRUE
|
|
|
|
#define GDK_IS_X11_DISPLAY(display) TRUE
|
2018-11-07 01:46:44 +01:00
|
|
|
#define gdk_x11_window_get_xid(window) GDK_WINDOW_XWINDOW (window)
|
|
|
|
|
|
|
|
inline void gdk_window_get_geometry (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gint *width,
|
|
|
|
gint *height)
|
|
|
|
{
|
|
|
|
gdk_window_get_geometry (window, x, y, width, height, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef GDK_WINDOWING_X11
|
|
|
|
#include <gdk/gdkx.h>
|
2018-11-07 01:04:10 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|