From 1383dfb59b35d2d4576691ad3d9778de344c8e15 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 16 Nov 2010 00:05:43 -0500 Subject: [PATCH] Convert another gtk_paint_ call --- .../gimpcellrenderertoggle/gimpcellrenderertoggle.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c index 55ef9101..185818c1 100644 --- a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c +++ b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c @@ -346,12 +346,9 @@ gimp_cell_renderer_toggle_render (GtkCellRenderer *cell, cairo_save (cr); gdk_cairo_rectangle (cr, &draw_rect); cairo_clip (cr); - gtk_paint_shadow (style, + gtk_render_frame (gtk_widget_get_style_context (widget), cr, - state, - active ? GTK_SHADOW_IN : GTK_SHADOW_OUT, - widget, NULL, - toggle_rect.x, toggle_rect.y, + toggle_rect.x, toggle_rect.y, toggle_rect.width, toggle_rect.height); cairo_restore (cr); } -- 2.43.5