diff options
| author | Silenio Quarti | 2012-02-27 17:14:15 +0000 |
|---|---|---|
| committer | Bogdan Gheorghe | 2012-04-26 21:00:11 +0000 |
| commit | 4171be6f67f46f1e929fa0a3983cfd3767530819 (patch) | |
| tree | c013ede85d231591d6b8da1a02ac68f3fc721c1e | |
| parent | e6c08d3d67d466157d79d499808f7b1d4fa4d3e5 (diff) | |
| download | eclipse.platform.ui-4171be6f67f46f1e929fa0a3983cfd3767530819.tar.gz eclipse.platform.ui-4171be6f67f46f1e929fa0a3983cfd3767530819.tar.xz eclipse.platform.ui-4171be6f67f46f1e929fa0a3983cfd3767530819.zip | |
should not create empty image widget
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 2 |
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 65cafc222eb..3d71e875539 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); /* |
