diff options
author | Koen Kooi <koen@openembedded.org> | 2005-08-08 08:14:09 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-08 08:14:09 +0000 |
commit | 0cf79f14c5f5d467826883fd260adc3d5f433180 (patch) | |
tree | f1ea654aded71fbce4c345fdc7c592dc93666ad8 /packages/libgpewidget | |
parent | 0d49fb3677ef0b7977c85108ec881f4f17007c6c (diff) |
Fix cairo.patch for libgpewidget
Diffstat (limited to 'packages/libgpewidget')
-rw-r--r-- | packages/libgpewidget/libgpewidget-0.102/cairo.patch | 39 | ||||
-rw-r--r-- | packages/libgpewidget/libgpewidget_0.102.bb | 2 |
2 files changed, 40 insertions, 1 deletions
diff --git a/packages/libgpewidget/libgpewidget-0.102/cairo.patch b/packages/libgpewidget/libgpewidget-0.102/cairo.patch index e69de29bb2..64b0dd3a3f 100644 --- a/packages/libgpewidget/libgpewidget-0.102/cairo.patch +++ b/packages/libgpewidget/libgpewidget-0.102/cairo.patch @@ -0,0 +1,39 @@ +--- /tmp/gpeclockface.c 2005-08-07 22:30:20.000000000 +0200 ++++ libgpewidget-0.102/gpeclockface.c 2005-08-08 10:10:09.180756032 +0200 +@@ -1,5 +1,5 @@ + /* +- * Copyright (C) 2003 Philip Blundell <philb@gnu.org> ++ * Copyright (C) 2003, 2005 Philip Blundell <philb@gnu.org> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License +@@ -11,6 +11,7 @@ + + #include <sys/types.h> + #include <stdio.h> ++#include <string.h> + #include <stdlib.h> + #include <math.h> + #include <string.h> +@@ -267,7 +268,7 @@ + 0, + 2 * M_PI); + cairo_fill (clock->cr); +- cairo_set_rgb_color (clock->cr, 0, 0, 0); ++ cairo_set_source_rgba (clock->cr, 0, 0, 0, 1.0); + cairo_arc (clock->cr, + clock->x_offset + clock->radius, + clock->y_offset + clock->radius, +@@ -493,11 +494,10 @@ + gcm = gdk_drawable_get_colormap (widget->window); + + #ifdef HAVE_CAIRO +- clock->cr = cairo_create (); + clock->surface = cairo_xlib_surface_create (dpy, GDK_WINDOW_XWINDOW (clock->backing_pixmap), + gdk_x11_visual_get_xvisual (gv), 0, + gdk_x11_colormap_get_xcolormap (gcm)); +- cairo_set_target_surface (clock->cr, clock->surface); ++ clock->cr = cairo_create (clock->surface); + #else + clock->backing_poly_gc = gdk_gc_new (clock->backing_pixmap); + #endif diff --git a/packages/libgpewidget/libgpewidget_0.102.bb b/packages/libgpewidget/libgpewidget_0.102.bb index 4954dd336e..35f09b5c21 100644 --- a/packages/libgpewidget/libgpewidget_0.102.bb +++ b/packages/libgpewidget/libgpewidget_0.102.bb @@ -1,5 +1,5 @@ LICENSE = "LGPL" -PR = "r1" +PR = "r2" DESCRIPTION = "libgpewidget contains a collection of widgets and other common code shared by many GPE applications." SECTION = "gpe/libs" PRIORITY = "optional" |