diff options
author | Jorn Baayen <jorn@openedhand.com> | 2006-07-20 10:57:12 +0000 |
---|---|---|
committer | Jorn Baayen <jorn@openedhand.com> | 2006-07-20 10:57:12 +0000 |
commit | 35fa11f1b5efea78225beb3c9b2e1c6e7ea240dc (patch) | |
tree | cd919db50bc0648cb9afdeff4271cfb0b63a7da5 /openembedded/packages/gtk+/gtk+-2.10.0/cellrenderer-cairo.patch | |
parent | 36a71a9c620e4a9510725af3a9e731e6529f744c (diff) | |
download | openembedded-core-35fa11f1b5efea78225beb3c9b2e1c6e7ea240dc.tar.gz openembedded-core-35fa11f1b5efea78225beb3c9b2e1c6e7ea240dc.tar.bz2 openembedded-core-35fa11f1b5efea78225beb3c9b2e1c6e7ea240dc.tar.xz openembedded-core-35fa11f1b5efea78225beb3c9b2e1c6e7ea240dc.zip |
Added GTK+ 2.10.0 + decairofication patches
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@519 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/gtk+/gtk+-2.10.0/cellrenderer-cairo.patch')
-rw-r--r-- | openembedded/packages/gtk+/gtk+-2.10.0/cellrenderer-cairo.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/openembedded/packages/gtk+/gtk+-2.10.0/cellrenderer-cairo.patch b/openembedded/packages/gtk+/gtk+-2.10.0/cellrenderer-cairo.patch new file mode 100644 index 000000000..020f35bb8 --- /dev/null +++ b/openembedded/packages/gtk+/gtk+-2.10.0/cellrenderer-cairo.patch @@ -0,0 +1,32 @@ +Index: gtkcellrenderer.c +=================================================================== +RCS file: /cvs/gnome/gtk+/gtk/gtkcellrenderer.c,v +retrieving revision 1.55 +diff -u -r1.55 gtk+-2.10.0/gtk/gtkcellrenderer.c +--- gtk+-2.10.0/gtk/gtkcellrenderer.c 14 May 2006 04:25:28 -0000 1.55 ++++ gtk+-2.10.0/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, |