diff options
author | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2011-12-19 15:43:08 -0500 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2011-12-19 15:43:08 -0500 |
commit | d6bd55e488730f8f966054d0eb048eea308ce3ad (patch) | |
tree | 17351b41e0c16e8acac40e76dc52d9edd3c0fd9d /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | |
parent | 78abe5d2890d6c18bca5ab665e997506c0954a8f (diff) | |
download | eclipse.platform.swt-d6bd55e488730f8f966054d0eb048eea308ce3ad.tar.gz eclipse.platform.swt-d6bd55e488730f8f966054d0eb048eea308ce3ad.tar.xz eclipse.platform.swt-d6bd55e488730f8f966054d0eb048eea308ce3ad.zip |
354126 - Tooltips do not appear for any Eclipse icons
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 25dd66065d..af3cc3e3c3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -2398,12 +2398,10 @@ void setToolTipText (int /*long*/ rootWidget, int /*long*/ tipWidget, String str buffer = Converter.wcsToMbcs (null, chars, true); } int /*long*/ oldTooltip = OS.gtk_widget_get_tooltip_text (rootWidget); - if (string == null && oldTooltip == 0) { + if (buffer == null && oldTooltip == 0) { return; - } else if (string != null && oldTooltip != 0) { - if (buffer != null) { + } else if (buffer != null && oldTooltip != 0) { if (OS.strcmp (oldTooltip, buffer) == 0) return; - } } OS.gtk_widget_set_tooltip_text (rootWidget, null); /* |