aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorsimon.zheng <simon.zheng@sun.com>2007-05-12 18:45:17 +0800
committerSimon Zheng <simonz@src.gnome.org>2007-05-12 18:45:17 +0800
commit7335b6905ce2ba077fa0aabf5a629b061e9ad6fa (patch)
treef5ac60df1cd36bc29e4bbeeac38ae836bfaffded /widgets
parent82f23f8570582e5d2ad1d264dd58b97fa26b4959 (diff)
downloadgsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.tar
gsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.tar.gz
gsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.tar.bz2
gsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.tar.lz
gsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.tar.xz
gsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.tar.zst
gsoc2013-evolution-7335b6905ce2ba077fa0aabf5a629b061e9ad6fa.zip
Fix for bug #355919
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. svn path=/trunk/; revision=33517
Diffstat (limited to 'widgets')
-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,