Mercurial > audlegacy
changeset 3223:963dfcfdc851 trunk
don't carry GdkGC around
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Thu, 02 Aug 2007 16:51:17 +0200 |
parents | bb7f5adc1677 |
children | 0e1d0ef5ed99 |
files | src/audacious/ui_skinned_window.c src/audacious/ui_skinned_window.h src/audacious/widgets/skin.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_window.c Thu Aug 02 16:10:32 2007 +0200 +++ b/src/audacious/ui_skinned_window.c Thu Aug 02 16:51:17 2007 +0200 @@ -240,7 +240,6 @@ ui_skinned_cursor_set(GTK_WIDGET(widget)); - SKINNED_WINDOW(widget)->gc = gdk_gc_new(widget->window); if (!strcmp(wmclass_name, "player")) SKINNED_WINDOW(widget)->type = WINDOW_MAIN; if (!strcmp(wmclass_name, "equalizer"))
--- a/src/audacious/ui_skinned_window.h Thu Aug 02 16:10:32 2007 +0200 +++ b/src/audacious/ui_skinned_window.h Thu Aug 02 16:51:17 2007 +0200 @@ -49,7 +49,6 @@ gint x,y; gint type; - GdkGC *gc; GtkWidget *fixed; };
--- 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;