summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-03 15:05:43 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-03 20:33:29 -0400
commit6a88076d643ac9b570062b746912ac639cf39eaf (patch)
tree9327e21210c6700b04b8b3140d94b508851a1157 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
parent88dc3a4dc3c68bb6669db018f4d6d63689ecddba (diff)
downloadeclipse.platform.swt-6a88076d643ac9b570062b746912ac639cf39eaf.tar.gz
eclipse.platform.swt-6a88076d643ac9b570062b746912ac639cf39eaf.tar.xz
eclipse.platform.swt-6a88076d643ac9b570062b746912ac639cf39eaf.zip
Bug 386594 - Use gtk_widget_get_visible instead of GTK_WIDGET_VISIBLE for newer GTK+
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
index ac426e3c69..8172a57080 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java
@@ -490,9 +490,9 @@ public boolean getVisible () {
int [] hsp = new int [1], vsp = new int [1];
OS.gtk_scrolled_window_get_policy (scrolledHandle, hsp, vsp);
if ((style & SWT.HORIZONTAL) != 0) {
- return hsp [0] != OS.GTK_POLICY_NEVER && OS.GTK_WIDGET_VISIBLE(handle);
+ return hsp [0] != OS.GTK_POLICY_NEVER && gtk_widget_get_visible (handle);
} else {
- return vsp [0] != OS.GTK_POLICY_NEVER && OS.GTK_WIDGET_VISIBLE(handle);
+ return vsp [0] != OS.GTK_POLICY_NEVER && gtk_widget_get_visible (handle);
}
}