comparison src/audacious/ui_skinned_button.c @ 4119:9d4b5cdae3ba

oops, fix previous commit
author Tomasz Mon <desowin@gmail.com>
date Tue, 25 Dec 2007 16:42:10 +0100
parents 1112f53ecc18
children 2281da647da9
comparison
equal deleted inserted replaced
4118:1112f53ecc18 4119:9d4b5cdae3ba
288 g_return_val_if_fail (UI_SKINNED_IS_BUTTON (widget), FALSE); 288 g_return_val_if_fail (UI_SKINNED_IS_BUTTON (widget), FALSE);
289 g_return_val_if_fail (event != NULL, FALSE); 289 g_return_val_if_fail (event != NULL, FALSE);
290 290
291 UiSkinnedButton *button = UI_SKINNED_BUTTON (widget); 291 UiSkinnedButton *button = UI_SKINNED_BUTTON (widget);
292 UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button); 292 UiSkinnedButtonPrivate *priv = UI_SKINNED_BUTTON_GET_PRIVATE (button);
293 g_return_val_if_fail (priv->w > 0 || priv->h > 0, FALSE); 293 g_return_val_if_fail (priv->w > 0 && priv->h > 0, FALSE);
294 294
295 //TYPE_SMALL doesn't have its own face 295 //TYPE_SMALL doesn't have its own face
296 if (button->type == TYPE_SMALL || button->type == TYPE_NOT_SET) 296 if (button->type == TYPE_SMALL || button->type == TYPE_NOT_SET)
297 return FALSE; 297 return FALSE;
298 298