diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-01 15:51:54 -0400 |
---|---|---|
committer | Anatoly Spektor <aspektor@redhat.com> | 2012-08-01 15:51:54 -0400 |
commit | f5bbfe3fdda9846d37e1566349c7153a18ad458f (patch) | |
tree | 90cc5e382f6ca3d41c11785b4f00c1aa1d4a8f26 | |
parent | c9f7838af1e54e39107b4e5302048b7cebef9023 (diff) | |
download | eclipse.platform.swt-gtk_tooltips_.tar.gz eclipse.platform.swt-gtk_tooltips_.tar.xz eclipse.platform.swt-gtk_tooltips_.zip |
Solve build errors regarding 2 GTK_TOOLTIPS constantsgtk_tooltips_
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h | 8 |
1 files changed, 8 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..f5835515d9 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 @@ -366,8 +366,16 @@ #define GTK_ENTRY_IM_CONTEXT(arg0) (arg0)->im_context #define GTK_TEXTVIEW_IM_CONTEXT(arg0) (arg0)->im_context #define GTK_TOOLTIPS_TIP_WINDOW(arg0) (arg0)->tip_window +#if GTK_CHECK_VERSION(2,12,0) +#define GTK_TOOLTIPS_SET_ACTIVE(arg0, arg1) +#else #define GTK_TOOLTIPS_SET_ACTIVE(arg0, arg1) (arg0)->active_tips_data = arg1 +#endif +#if GTK_CHECK_VERSION(2,12,0) +#define GTK_TOOLTIPS_GET_TIP_TEXT(arg0) 0 +#else #define GTK_TOOLTIPS_GET_TIP_TEXT(arg0) (arg0)->tip_text +#endif #define GTK_WIDGET_Y(arg0) ((GtkWidget *)arg0)->allocation.y #define GTK_WIDGET_SET_Y(arg0, arg1) (arg0)->allocation.y = arg1 #define GTK_WIDGET_REQUISITION_WIDTH(arg0) (arg0)->requisition.width |