diff options
author | Koen Kooi <koen@openembedded.org> | 2007-09-16 08:01:59 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-09-16 08:01:59 +0000 |
commit | 102fc40c1d84e8e51443c9fd0b1c367082a80ea0 (patch) | |
tree | 2f3e8aa3b752875695eabc91576156ca01111218 /packages/gtk+/gtk+-2.12.0/cellrenderer-cairo.patch | |
parent | 7991bbe9e7cafe04a7cfc9f6d02ec2f3de41f1ab (diff) |
gtk: add 2.12.0 from poky
Diffstat (limited to 'packages/gtk+/gtk+-2.12.0/cellrenderer-cairo.patch')
-rw-r--r-- | packages/gtk+/gtk+-2.12.0/cellrenderer-cairo.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.12.0/cellrenderer-cairo.patch b/packages/gtk+/gtk+-2.12.0/cellrenderer-cairo.patch new file mode 100644 index 0000000000..4439e69fb6 --- /dev/null +++ b/packages/gtk+/gtk+-2.12.0/cellrenderer-cairo.patch @@ -0,0 +1,32 @@ +Index: gtk/gtkcellrenderer.c +=================================================================== +RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderer.c,v +retrieving revision 1.55 +diff -u -r1.55 gtkcellrenderer.c +--- gtk/gtkcellrenderer.c 14 May 2006 04:25:28 -0000 1.55 ++++ gtk/gtkcellrenderer.c 30 Jun 2006 10:57:43 -0000 +@@ -551,6 +551,7 @@ + + if (cell->cell_background_set && !selected) + { ++#ifdef USE_CAIRO_INTERNALLY + cairo_t *cr = gdk_cairo_create (window); + + gdk_cairo_rectangle (cr, background_area); +@@ -558,6 +559,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, |