diff src/audacious/ui_skinned_menurow.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 75d99359357b
line wrap: on
line diff
--- a/src/audacious/ui_skinned_menurow.c	Mon Jan 21 02:46:44 2008 +0200
+++ b/src/audacious/ui_skinned_menurow.c	Tue Jan 22 22:40:48 2008 +0100
@@ -236,19 +236,9 @@
                              menurow->sx + 24, menurow->sy + 26, 0, 26, 8, 8);
     }
 
-    GdkPixbuf *image = NULL;
-    if (menurow->double_size) {
-        image = gdk_pixbuf_scale_simple(obj, menurow->width*2, menurow->height*2, GDK_INTERP_NEAREST);
-    } else {
-        image = gdk_pixbuf_copy(obj);
-    }
-
-    gdk_draw_pixbuf(widget->window, NULL, image, 0, 0, 0, 0,
-                    menurow->width*(1+menurow->double_size), menurow->height*(1+menurow->double_size),
-                    GDK_RGB_DITHER_NONE, 0, 0);
+    ui_skinned_widget_draw(widget, obj, menurow->width, menurow->height, menurow->double_size);
 
     g_object_unref(obj);
-    g_object_unref(image);
 
     return FALSE;
 }