aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/ChangeLog11
-rw-r--r--widgets/table/e-table-header-utils.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 670368435d..20fa384e61 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,3 +1,14 @@
+2007-05-12 simon.zheng <simon.zheng@sun.com>
+
+ * 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.
+
2007-04-20 Matthew Barnes <mbarnes@redhat.com>
* e-cell.h:
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,