OS.gtk_image_set_from_pixbuf (imageHandle, 0); OS.gtk_widget_show (labelHandle); OS.gtk_widget_hide (imageHandle);
int oldImageHeight = imageHeight; if (image != null) { Rectangle bounds = image.getBounds (); imageHeight = bounds.height; imageWidth = bounds.width; } else { imageHeight = imageWidth = 0; } if (oldImageHeight != imageHeight) { parent.layoutItems (parent.indexOf (this), true); } else { redraw (); }
public void setImage (Image image) {	super.setImage (image);	if (imageList != null) imageList.dispose ();	imageList = null;	if (image != null) {		if (image.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);		imageList = new ImageList ();		int imageIndex = imageList.add (image);		int /*long*/ pixbuf = imageList.getPixbuf (imageIndex);		OS.gtk_image_set_from_pixbuf (imageHandle, pixbuf);		if (text.length () == 0) OS.gtk_widget_hide (labelHandle);		OS.gtk_widget_show (imageHandle);	} else {		OS.gtk_image_set_from_pixbuf (imageHandle, 0);		OS.gtk_widget_show (labelHandle);		OS.gtk_widget_hide (imageHandle);	}}