diff options
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+-2.24.20/cellrenderer-cairo.patch')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+-2.24.20/cellrenderer-cairo.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+-2.24.20/cellrenderer-cairo.patch b/meta/recipes-gnome/gtk+/gtk+-2.24.20/cellrenderer-cairo.patch new file mode 100644 index 0000000..ba89329 --- /dev/null +++ b/meta/recipes-gnome/gtk+/gtk+-2.24.20/cellrenderer-cairo.patch @@ -0,0 +1,31 @@ +Upstream-Status: Pending + +Index: gtk/gtkcellrenderer.c +=================================================================== +--- gtk/gtkcellrenderer.c.orig 2010-06-22 17:21:22.000000000 +0800 ++++ gtk/gtkcellrenderer.c 2010-06-22 17:21:25.000000000 +0800 +@@ -566,6 +566,7 @@ + + if (cell->cell_background_set && !selected) + { ++#ifdef USE_CAIRO_INTERNALLY + cairo_t *cr = gdk_cairo_create (window); + + gdk_cairo_rectangle (cr, background_area); +@@ -573,6 +574,16 @@ + cairo_fill (cr); + + cairo_destroy (cr); ++#else ++ GdkGC *gc; ++ ++ gc = gdk_gc_new (window); ++ gdk_gc_set_rgb_fg_color (gc, &priv->cell_background); ++ gdk_draw_rectangle (window, gc, TRUE, ++ background_area->x, background_area->y, ++ background_area->width, background_area->height); ++ g_object_unref (gc); ++#endif + } + + GTK_CELL_RENDERER_GET_CLASS (cell)->render (cell, |