From 7335b6905ce2ba077fa0aabf5a629b061e9ad6fa Mon Sep 17 00:00:00 2001 From: "simon.zheng" Date: Sat, 12 May 2007 10:45:17 +0000 Subject: Fix for bug #355919 2007-05-12 simon.zheng * Fix for bug #355919 * e-table-header-utils.c: (make_composite_pixmap): gdk_rgb_get_visual()->depth always returns preferred visual depth, which isn't always equal to the that of current window. Whereas, using -1 will match the depth of the pixmap window to what we have in drawable window, which is the first argument of gdk_pixmap_new(). So use -1 instead. svn path=/trunk/; revision=33517 --- widgets/table/e-table-header-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/table/e-table-header-utils.c') diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c index b31f81eef1..1bbb60eb07 100644 --- a/widgets/table/e-table-header-utils.c +++ b/widgets/table/e-table-header-utils.c @@ -205,7 +205,7 @@ make_composite_pixmap (GdkDrawable *drawable, GdkGC *gc, g_object_unref (fade); } - pixmap = gdk_pixmap_new (drawable, width, height, gdk_rgb_get_visual ()->depth); + pixmap = gdk_pixmap_new (drawable, width, height, -1); gdk_draw_rgb_image_dithalign (pixmap, gc, 0, 0, width, height, -- cgit v1.2.3