Mercurial > audlegacy
comparison audacious/widgets/playlist_list.c @ 1770:80955c196e11 trunk
[svn] - fix a potential crash when running audacious remotely
author | nenolod |
---|---|
date | Mon, 02 Oct 2006 18:46:02 -0700 |
parents | a6e6d3500c13 |
children | 630cdcaad7de |
comparison
equal
deleted
inserted
replaced
1769:8a926dec916f | 1770:80955c196e11 |
---|---|
95 /* and this is definately mine... -nenolod */ | 95 /* and this is definately mine... -nenolod */ |
96 GdkPixmap * | 96 GdkPixmap * |
97 shade_pixmap(GdkPixmap *in, gint x, gint y, gint x_offset, gint y_offset, gint w, gint h, GdkColor *shade_color) | 97 shade_pixmap(GdkPixmap *in, gint x, gint y, gint x_offset, gint y_offset, gint w, gint h, GdkColor *shade_color) |
98 { | 98 { |
99 GdkImage *ximg; | 99 GdkImage *ximg; |
100 GdkPixmap *p = gdk_pixmap_new(in, w, h, -1); | 100 GdkPixmap *p; |
101 GdkGC *gc = gdk_gc_new(p); | 101 GdkGC *gc; |
102 | |
103 if (in == NULL) | |
104 return; | |
105 | |
106 P = gdk_pixmap_new(in, w, h, -1); | |
107 gc = gdk_gc_new(p); | |
102 | 108 |
103 gdk_draw_pixmap(p, gc, in, x, y, 0, 0, w, h); | 109 gdk_draw_pixmap(p, gc, in, x, y, 0, 0, w, h); |
104 | 110 |
105 gdk_error_trap_push(); | 111 gdk_error_trap_push(); |
106 | 112 |