Mercurial > audlegacy
comparison src/audacious/ui_skinned_equalizer_slider.c @ 4212:47352b34dbdf
introduce ui_skinned_widget_draw
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 22 Jan 2008 22:40:48 +0100 |
parents | 2281da647da9 |
children | 742f00832961 |
comparison
equal
deleted
inserted
replaced
4207:15df056e7634 | 4212:47352b34dbdf |
---|---|
219 if (priv->pressed) | 219 if (priv->pressed) |
220 skin_draw_pixbuf(widget, bmp_active_skin, obj, priv->skin_index, 0, 176, 1, priv->position, 11, 11); | 220 skin_draw_pixbuf(widget, bmp_active_skin, obj, priv->skin_index, 0, 176, 1, priv->position, 11, 11); |
221 else | 221 else |
222 skin_draw_pixbuf(widget, bmp_active_skin, obj, priv->skin_index, 0, 164, 1, priv->position, 11, 11); | 222 skin_draw_pixbuf(widget, bmp_active_skin, obj, priv->skin_index, 0, 164, 1, priv->position, 11, 11); |
223 | 223 |
224 GdkPixbuf *image = NULL; | 224 ui_skinned_widget_draw(widget, obj, priv->width, priv->height, priv->double_size); |
225 if (priv->double_size) { | |
226 image = gdk_pixbuf_scale_simple(obj, priv->width*2, priv->height*2, GDK_INTERP_NEAREST); | |
227 } else { | |
228 image = gdk_pixbuf_copy(obj); | |
229 } | |
230 | |
231 gdk_draw_pixbuf(widget->window, NULL, image, 0, 0, 0, 0, | |
232 priv->width*(1+priv->double_size), priv->height*(1+priv->double_size), | |
233 GDK_RGB_DITHER_NONE, 0, 0); | |
234 | 225 |
235 g_object_unref(obj); | 226 g_object_unref(obj); |
236 g_object_unref(image); | |
237 | 227 |
238 return FALSE; | 228 return FALSE; |
239 } | 229 } |
240 | 230 |
241 static gboolean ui_skinned_equalizer_slider_button_press(GtkWidget *widget, GdkEventButton *event) { | 231 static gboolean ui_skinned_equalizer_slider_button_press(GtkWidget *widget, GdkEventButton *event) { |