aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/shortcut-bar
diff options
context:
space:
mode:
authorLarry Ewing <lewing@helixcode.com>2000-04-12 05:48:49 +0800
committerLarry Ewing <lewing@src.gnome.org>2000-04-12 05:48:49 +0800
commit215ecb48eb0a35c04315d67854a7daaf2026378d (patch)
treefe65add3c1690d2e3cf7aeaa158be55c8a22502d /widgets/shortcut-bar
parent879dbf98d742303050d5c94cd58dd1331b69510b (diff)
downloadgsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.tar
gsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.tar.gz
gsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.tar.bz2
gsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.tar.lz
gsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.tar.xz
gsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.tar.zst
gsoc2013-evolution-215ecb48eb0a35c04315d67854a7daaf2026378d.zip
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 <lewing@helixcode.com> * 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
Diffstat (limited to 'widgets/shortcut-bar')
-rw-r--r--widgets/shortcut-bar/e-icon-bar.c9
1 files changed, 5 insertions, 4 deletions
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);