aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2012-02-27 12:14:15 (EST)
committerBogdan Gheorghe2012-04-26 17:00:11 (EDT)
commit4171be6f67f46f1e929fa0a3983cfd3767530819 (patch)
treec013ede85d231591d6b8da1a02ac68f3fc721c1e
parente6c08d3d67d466157d79d499808f7b1d4fa4d3e5 (diff)
downloadeclipse.platform.swt-4171be6f67f46f1e929fa0a3983cfd3767530819.zip
eclipse.platform.swt-4171be6f67f46f1e929fa0a3983cfd3767530819.tar.gz
eclipse.platform.swt-4171be6f67f46f1e929fa0a3983cfd3767530819.tar.bz2
should not create empty image widget
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java2
1 files changed, 1 insertions, 1 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 65cafc2..3d71e87 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
@@ -993,7 +993,7 @@ public void setImage (Image image) {
imageHandle = OS.gtk_image_new_from_pixbuf (pixbuf);
OS.gtk_widget_show (imageHandle);
} else {
- imageHandle = OS.gtk_image_new_from_pixbuf (0);
+ imageHandle = 0;
}
OS.gtk_tool_button_set_icon_widget (handle, imageHandle);
/*