diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-03 10:07:07 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-08-03 10:07:07 -0400 |
commit | 4e304bf58fa28343289565a3b93efc96a15fd931 (patch) | |
tree | b068dab847a34df1c61d39a607f38b44c5d5ca0d /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h | |
parent | de6fbaaec46412d3fdef0c01810182c0b01cafbd (diff) | |
download | eclipse.platform.swt-4e304bf58fa28343289565a3b93efc96a15fd931.tar.gz eclipse.platform.swt-4e304bf58fa28343289565a3b93efc96a15fd931.tar.xz eclipse.platform.swt-4e304bf58fa28343289565a3b93efc96a15fd931.zip |
Use gtk_widget_get_window() instead of GTK_WIDGET_WINDOW in newer GTK+gtk_widget_get_window_
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h index f21e8ca75a..a9af801f23 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h @@ -198,6 +198,7 @@ #define gtk_widget_is_composited_LIB LIB_GTK #define gtk_widget_get_tooltip_text_LIB LIB_GTK #define gtk_widget_set_tooltip_text_LIB LIB_GTK +#define gtk_widget_get_window_LIB LIB_GTK #define gdk_pango_context_set_colormap_LIB LIB_GDK #define gdk_x11_screen_get_window_manager_name_LIB LIB_GDK #define gdk_x11_screen_lookup_visual_LIB LIB_GDK @@ -360,7 +361,11 @@ #define GTK_WIDGET_SET_HEIGHT(arg0, arg1) (arg0)->allocation.height = arg1 #define GTK_WIDGET_WIDTH(arg0) (arg0)->allocation.width #define GTK_WIDGET_SET_WIDTH(arg0, arg1) (arg0)->allocation.width = arg1 +#if GTK_CHECK_VERSION(2,14,0) +#define GTK_WIDGET_WINDOW(arg0) 0 +#else #define GTK_WIDGET_WINDOW(arg0) (arg0)->window +#endif #define GTK_WIDGET_X(arg0) (arg0)->allocation.x #define GTK_WIDGET_SET_X(arg0, arg1) (arg0)->allocation.x = arg1 #define GTK_ENTRY_IM_CONTEXT(arg0) (arg0)->im_context |