summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-01 15:51:54 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-02 09:46:55 -0400
commite022a0c75a403ed0e9a3c5768ca29fe48d88caca (patch)
tree3c4553f20f685bcc805dacf153651b773f7ad486
parentfed3ad1e50dcf41c4976b2be1142f80068a3a12a (diff)
downloadeclipse.platform.swt-e022a0c75a403ed0e9a3c5768ca29fe48d88caca.tar.gz
eclipse.platform.swt-e022a0c75a403ed0e9a3c5768ca29fe48d88caca.tar.xz
eclipse.platform.swt-e022a0c75a403ed0e9a3c5768ca29fe48d88caca.zip
Solve build errors regarding 2 GTK_TOOLTIPS constants
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h8
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 af4eb84880..7aa2584af6 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
@@ -383,8 +383,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