From: Matthias Clasen Date: Tue, 16 Nov 2010 05:05:43 +0000 (-0500) Subject: Convert another gtk_paint_ call X-Git-Tag: EVINCE_2_91_4~3 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1383dfb59b35d2d4576691ad3d9778de344c8e15;p=evince.git Convert another gtk_paint_ call --- 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); }