Mercurial > audlegacy
comparison src/audacious/ui_skinned_playlist_slider.c @ 4118:1112f53ecc18
prevent BadAlloc's
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 25 Dec 2007 16:28:34 +0100 |
parents | d46d60247826 |
children | 9d4b5cdae3ba |
comparison
equal
deleted
inserted
replaced
4117:a5779105e6d2 | 4118:1112f53ecc18 |
---|---|
213 g_return_val_if_fail (UI_SKINNED_IS_PLAYLIST_SLIDER (widget), FALSE); | 213 g_return_val_if_fail (UI_SKINNED_IS_PLAYLIST_SLIDER (widget), FALSE); |
214 g_return_val_if_fail (event != NULL, FALSE); | 214 g_return_val_if_fail (event != NULL, FALSE); |
215 | 215 |
216 UiSkinnedPlaylistSlider *ps = UI_SKINNED_PLAYLIST_SLIDER (widget); | 216 UiSkinnedPlaylistSlider *ps = UI_SKINNED_PLAYLIST_SLIDER (widget); |
217 UiSkinnedPlaylistSliderPrivate *priv = UI_SKINNED_PLAYLIST_SLIDER_GET_PRIVATE(ps); | 217 UiSkinnedPlaylistSliderPrivate *priv = UI_SKINNED_PLAYLIST_SLIDER_GET_PRIVATE(ps); |
218 g_return_val_if_fail (priv->width > 0 || priv->height > 0, FALSE); | |
218 | 219 |
219 GdkPixmap *obj = NULL; | 220 GdkPixmap *obj = NULL; |
220 GdkGC *gc; | 221 GdkGC *gc; |
221 | 222 |
222 obj = gdk_pixmap_new(NULL, priv->width, priv->height, gdk_rgb_get_visual()->depth); | 223 obj = gdk_pixmap_new(NULL, priv->width, priv->height, gdk_rgb_get_visual()->depth); |