diff src/audacious/widgets/skin.c @ 3223:963dfcfdc851 trunk

don't carry GdkGC around
author Tomasz Mon <desowin@gmail.com>
date Thu, 02 Aug 2007 16:51:17 +0200
parents 9583cd62231f
children
line wrap: on
line diff
--- a/src/audacious/widgets/skin.c	Thu Aug 02 16:10:32 2007 +0200
+++ b/src/audacious/widgets/skin.c	Thu Aug 02 16:51:17 2007 +0200
@@ -322,8 +322,10 @@
     pixbuf2 = audacious_create_colorized_pixbuf(pixbuf, cfg.colorize_r, cfg.colorize_g, cfg.colorize_b);
     g_object_unref(pixbuf);
 
-    gdk_draw_pixbuf(pixmap, SKINNED_WINDOW(mainwin)->gc, pixbuf2, 0, 0, 0, 0, width, height,
-                    GDK_RGB_DITHER_MAX, 0, 0);
+    GdkGC *gc;
+    gc = gdk_gc_new(pixmap);
+    gdk_draw_pixbuf(pixmap, gc, pixbuf2, 0, 0, 0, 0, width, height, GDK_RGB_DITHER_MAX, 0, 0);
+    g_object_unref(gc);
     g_object_unref(pixbuf2);
 
     return pixmap;