summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.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/ToolTip.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/ToolTip.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
index dc4ff1f1df..53ef0845bc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
@@ -464,7 +464,7 @@ public String getText () {
*/
public boolean getVisible () {
checkWidget ();
- if ((style & SWT.BALLOON) != 0) return OS.GTK_WIDGET_VISIBLE (handle);
+ if ((style & SWT.BALLOON) != 0) return gtk_widget_get_visible (handle);
if (OS.GTK_VERSION < OS.VERSION (2, 12, 0)) {
int /*long*/ tipWindow = OS.GTK_TOOLTIPS_TIP_WINDOW (handle);
return OS.GTK_WIDGET_VISIBLE (tipWindow);
@@ -734,11 +734,11 @@ public void setLocation (int x, int y) {
this.x = x;
this.y = y;
if ((style & SWT.BALLOON) != 0) {
- if (OS.GTK_WIDGET_VISIBLE (handle)) configure ();
+ if (gtk_widget_get_visible (handle)) configure ();
} else {
if (OS.GTK_VERSION < OS.VERSION (2, 12, 0)) {
int /*long*/ tipWindow = OS.GTK_TOOLTIPS_TIP_WINDOW (handle);
- if (OS.GTK_WIDGET_VISIBLE (tipWindow)) {
+ if (gtk_widget_get_visible (tipWindow)) {
OS.gtk_window_move (tipWindow, x, y);
}
}
@@ -801,7 +801,7 @@ public void setMessage (String string) {
}
OS.pango_layout_set_wrap (layoutMessage, OS.PANGO_WRAP_WORD_CHAR);
}
- if (OS.GTK_WIDGET_VISIBLE (handle)) configure ();
+ if (gtk_widget_get_visible (handle)) configure ();
}
/**
@@ -842,7 +842,7 @@ public void setText (String string) {
OS.pango_attr_list_unref (attrList);
OS.pango_layout_set_wrap (layoutText, OS.PANGO_WRAP_WORD_CHAR);
}
- if (OS.GTK_WIDGET_VISIBLE (handle)) configure ();
+ if (gtk_widget_get_visible (handle)) configure ();
}
/**