Line data Source code
1 : /* This Source Code Form is subject to the terms of the Mozilla Public
2 : * License, v. 2.0. If a copy of the MPL was not distributed with this
3 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 :
5 : #ifndef GDKX_WRAPPER_H
6 : #define GDKX_WRAPPER_H
7 :
8 : #include <gtk/gtkversion.h>
9 :
10 : #define gdk_x11_window_foreign_new_for_display gdk_x11_window_foreign_new_for_display_
11 : #define gdk_x11_window_lookup_for_display gdk_x11_window_lookup_for_display_
12 : #define gdk_x11_window_get_xid gdk_x11_window_get_xid_
13 : #if !GTK_CHECK_VERSION(2,24,0)
14 : #define gdk_x11_set_sm_client_id gdk_x11_set_sm_client_id_
15 : #endif
16 : #include_next <gdk/gdkx.h>
17 : #undef gdk_x11_window_foreign_new_for_display
18 : #undef gdk_x11_window_lookup_for_display
19 : #undef gdk_x11_window_get_xid
20 :
21 : static inline GdkWindow *
22 : gdk_x11_window_foreign_new_for_display(GdkDisplay *display, Window window)
23 : {
24 : return gdk_window_foreign_new_for_display(display, window);
25 : }
26 :
27 : static inline GdkWindow *
28 : gdk_x11_window_lookup_for_display(GdkDisplay *display, Window window)
29 : {
30 : return gdk_window_lookup_for_display(display, window);
31 : }
32 :
33 : static inline Window
34 0 : gdk_x11_window_get_xid(GdkWindow *window)
35 : {
36 0 : return(GDK_WINDOW_XWINDOW(window));
37 : }
38 :
39 : #ifndef GDK_IS_X11_DISPLAY
40 : #define GDK_IS_X11_DISPLAY(a) (true)
41 : #endif
42 :
43 : #if !GTK_CHECK_VERSION(2,24,0)
44 : #undef gdk_x11_set_sm_client_id
45 : static inline void
46 : gdk_x11_set_sm_client_id (const gchar *sm_client_id)
47 : {
48 : gdk_set_sm_client_id(sm_client_id);
49 : }
50 : #endif
51 : #endif /* GDKX_WRAPPER_H */
|