[evolution] Workaround table header image draw, it crashes under clutter.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Workaround table header image draw, it crashes under clutter.
- Date: Mon, 26 Jul 2010 11:43:19 +0000 (UTC)
commit 95918d83aef0ce4d390bfc4f4791fb083cd86e96
Author: Srinivasa Ragavan <sragavan gnome org>
Date: Mon Jul 19 11:20:51 2010 +0530
Workaround table header image draw, it crashes under clutter.
widgets/table/e-table-header-utils.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c
index 0547b22..edcf331 100644
--- a/widgets/table/e-table-header-utils.c
+++ b/widgets/table/e-table-header-utils.c
@@ -435,6 +435,9 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
layout, ecol->text, inner_width - (xpos - inner_x), FALSE);
}
+ /* FIXME: For some reason, under clutter gdk_draw_rgb_image_dithalign crashes
+ * Debug that later */
+#if 0
pixmap = make_composite_pixmap (drawable, gc,
ecol->pixbuf, &style->bg[state],
clip_width, clip_height,
@@ -451,6 +454,14 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
clip_width, clip_height);
g_object_unref (pixmap);
}
+#endif
+ gdk_draw_pixbuf (drawable, gc,
+ ecol->pixbuf,
+ 0, 0,
+ xpos, inner_y + (inner_height - clip_height) / 2,
+ -1, -1,
+ GDK_RGB_DITHER_NONE,
+ 0, 0);
} else {
e_table_draw_elided_string (drawable, gc, widget,
inner_x, inner_y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]