diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-07-19 13:50:51 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-07-26 09:30:00 +0800 |
commit | 95918d83aef0ce4d390bfc4f4791fb083cd86e96 (patch) | |
tree | 8b52a2de1a24c1460559ac4823cc0314420e0798 /widgets | |
parent | 265e3a2879986c6a661e98bc12c31b32b5774f97 (diff) | |
download | gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.tar gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.tar.gz gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.tar.bz2 gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.tar.lz gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.tar.xz gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.tar.zst gsoc2013-evolution-95918d83aef0ce4d390bfc4f4791fb083cd86e96.zip |
Workaround table header image draw, it crashes under clutter.
Diffstat (limited to 'widgets')
-rw-r--r-- | 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 0547b22228..edcf3313e6 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, |