summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorArun Thondapu2012-03-28 17:50:17 (EDT)
committer Silenio Quarti2012-03-28 17:50:17 (EDT)
commit0d13b71d5a98909892df9e5075c3411a865bdb2a (patch)
treeb504fca2be6f1a84dcefd6257d665bda350bb1d6
parent1af697e574a666bea0dd37ddb30222e97abece84 (diff)
downloadeclipse.platform.swt-0d13b71d5a98909892df9e5075c3411a865bdb2a.zip
eclipse.platform.swt-0d13b71d5a98909892df9e5075c3411a865bdb2a.tar.gz
eclipse.platform.swt-0d13b71d5a98909892df9e5075c3411a865bdb2a.tar.bz2
Bug 46025 - [Widgets] Toolbar does not support WRAP style (comment#71)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
index 296fb75..e398ddb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
@@ -581,7 +581,7 @@ int /*long*/ gtk_create_menu_proxy (int /*long*/ widget) {
* activate signal to send the Arrow selection signal.
*/
if ((style & SWT.DROP_DOWN) != 0) return 0;
- if (image != null /*&& (text == null || text.length() == 0)*/) {
+ if (image != null) {
ImageList imageList = parent.imageList;
if (imageList != null) {
int index = imageList.indexOf (image);
@@ -948,10 +948,6 @@ void setFontDescription (int /*long*/ font) {
}
void setForegroundColor (GdkColor color) {
- int /*long*/ childHandle = OS.gtk_bin_get_child(handle);
- if (childHandle != 0) {
- setForegroundColor (childHandle, color);
- }
if (labelHandle != 0) setForegroundColor (labelHandle, color);
}