summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse van den Kieboom <jesse@icecrew.nl>2010-10-02 15:00:06 (GMT)
committerJesse van den Kieboom <jesse@icecrew.nl>2010-10-02 15:00:06 (GMT)
commitfd76ccf61eb135210d13fe9fb89e7afd4a51f6bb (patch)
tree12c3be3b4a8f7ac6780e4ded4b4c0707cc8ee6f7
parent9c2c564fbec3365aee20432393f51da8f1bd0d62 (diff)
downloadgedit-collaboration-fd76ccf61eb135210d13fe9fb89e7afd4a51f6bb.tar.gz
gedit-collaboration-fd76ccf61eb135210d13fe9fb89e7afd4a51f6bb.tar.xz
Fix cell renderer for new gtk+3 render API
-rw-r--r--src/gedit-collaboration-hue-renderer.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gedit-collaboration-hue-renderer.c b/src/gedit-collaboration-hue-renderer.c
index 905eed0..2c28a1e 100644
--- a/src/gedit-collaboration-hue-renderer.c
+++ b/src/gedit-collaboration-hue-renderer.c
@@ -118,11 +118,10 @@ set_source_color_from_hue (GeditCollaborationHueRenderer *renderer,
static void
gedit_collaboration_hue_renderer_render (GtkCellRenderer *cell,
- GdkDrawable *window,
+ cairo_t *ctx,
GtkWidget *widget,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
- GdkRectangle *expose_area,
+ GdkRectangle const *background_area,
+ GdkRectangle const *cell_area,
GtkCellRendererState flags)
{
gdouble xpad;
@@ -139,11 +138,6 @@ gedit_collaboration_hue_renderer_render (GtkCellRenderer *cell,
/* Draw a nice little rectangle with the current hue in the
cell_area */
- cairo_t *ctx = gdk_cairo_create (window);
-
- gdk_cairo_rectangle (ctx, expose_area);
- cairo_clip (ctx);
-
x = cell_area->x + xpad + 0.5;
y = cell_area->y + ypad + 0.5;
@@ -164,8 +158,6 @@ gedit_collaboration_hue_renderer_render (GtkCellRenderer *cell,
gdk_cairo_set_source_color (ctx, &style->fg[gtk_widget_get_state (widget)]);
cairo_stroke (ctx);
-
- cairo_destroy (ctx);
}
static void