summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-01 14:59:11 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-02 09:39:42 -0400
commitfed3ad1e50dcf41c4976b2be1142f80068a3a12a (patch)
treedf1e13f4b6154e9565e0b922f2613471851aaa11 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
parenta521fb70cf0f8b26019c8a033cb117435dbcf6ed (diff)
downloadeclipse.platform.swt-fed3ad1e50dcf41c4976b2be1142f80068a3a12a.tar.gz
eclipse.platform.swt-fed3ad1e50dcf41c4976b2be1142f80068a3a12a.tar.xz
eclipse.platform.swt-fed3ad1e50dcf41c4976b2be1142f80068a3a12a.zip
Uses gtk_widget_get_sensitive instead of deprecated GTK_WIDGET_SENSITIVE
Conflicts: bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index 778e9bb987..6aa4be97f3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -1682,6 +1682,14 @@ int /*long*/ sizeRequestProc (int /*long*/ handle, int /*long*/ arg0, int /*long
return 0;
}
+boolean gtk_widget_get_sensitive (int /*long*/ widget) {
+ if (OS.GTK_VERSION >= OS.VERSION (2, 18, 0)) {
+ return OS.gtk_widget_get_sensitive (widget);
+ } else {
+ return OS.GTK_WIDGET_SENSITIVE (widget);
+ }
+}
+
/**
* Returns a string containing a concise, human-readable
* description of the receiver.