Mercurial > audlegacy
comparison src/audacious/widgets/skin.c @ 2525:ddd127429fc6 trunk
[svn] - move the GC into the SkinnedWindow class.
author | nenolod |
---|---|
date | Thu, 15 Feb 2007 00:33:21 -0800 |
parents | d6315e592e40 |
children | 299be5908480 |
comparison
equal
deleted
inserted
replaced
2524:d135f97bf48d | 2525:ddd127429fc6 |
---|---|
41 | 41 |
42 #include "debug.h" | 42 #include "debug.h" |
43 | 43 |
44 #include "platform/smartinclude.h" | 44 #include "platform/smartinclude.h" |
45 #include "vfs.h" | 45 #include "vfs.h" |
46 | |
47 #include "ui_skinned_window.h" | |
46 | 48 |
47 #define EXTENSION_TARGETS 7 | 49 #define EXTENSION_TARGETS 7 |
48 | 50 |
49 static gchar *ext_targets[EXTENSION_TARGETS] = { "bmp", "xpm", "png", "svg", | 51 static gchar *ext_targets[EXTENSION_TARGETS] = { "bmp", "xpm", "png", "svg", |
50 "gif", "jpg", "jpeg" }; | 52 "gif", "jpg", "jpeg" }; |
315 } | 317 } |
316 | 318 |
317 pixbuf2 = audacious_create_colorized_pixbuf(pixbuf, cfg.colorize_r, cfg.colorize_g, cfg.colorize_b); | 319 pixbuf2 = audacious_create_colorized_pixbuf(pixbuf, cfg.colorize_r, cfg.colorize_g, cfg.colorize_b); |
318 g_object_unref(pixbuf); | 320 g_object_unref(pixbuf); |
319 | 321 |
320 gdk_draw_pixbuf(pixmap, mainwin_gc, pixbuf2, 0, 0, 0, 0, width, height, | 322 gdk_draw_pixbuf(pixmap, SKINNED_WINDOW(mainwin)->gc, pixbuf2, 0, 0, 0, 0, width, height, |
321 GDK_RGB_DITHER_MAX, 0, 0); | 323 GDK_RGB_DITHER_MAX, 0, 0); |
322 g_object_unref(pixbuf2); | 324 g_object_unref(pixbuf2); |
323 | 325 |
324 return pixmap; | 326 return pixmap; |
325 } | 327 } |