From 215ecb48eb0a35c04315d67854a7daaf2026378d Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 11 Apr 2000 21:48:49 +0000 Subject: you need the latest gdk-pixbuf to build evolution now. you need the latest gdk-pixbuf to build evolution now. 2000-04-11 Larry Ewing * widgets/e-table/e-cell-toggle.c (etog_draw): update for new gdk-pixbuf. Added a disabled chuck of code to do alpha blending on pixmaps. * widgets/shortcut-bar/e-icon-bar.c (flatten_alpha): update for new gdk-pixbuf. svn path=/trunk/; revision=2397 --- widgets/shortcut-bar/e-icon-bar.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'widgets/shortcut-bar/e-icon-bar.c') diff --git a/widgets/shortcut-bar/e-icon-bar.c b/widgets/shortcut-bar/e-icon-bar.c index e325ef0327..bce54320bc 100644 --- a/widgets/shortcut-bar/e-icon-bar.c +++ b/widgets/shortcut-bar/e-icon-bar.c @@ -525,14 +525,15 @@ e_icon_bar_set_view_type (EIconBar *icon_bar, static GdkPixbuf * flatten_alpha (GdkPixbuf *image, guint rgb) { - if (!image || !image->art_pixbuf->has_alpha) + if (!image || !gdk_pixbuf_get_has_alpha (image)) return NULL; + return gdk_pixbuf_composite_color_simple ( image, - image->art_pixbuf->width, - image->art_pixbuf->height, - ART_FILTER_NEAREST, + gdk_pixbuf_get_width (image), + gdk_pixbuf_get_height (image), + GDK_INTERP_NEAREST, 255, 32, rgb, ~rgb); -- cgit v1.2.3