]> www.fi.muni.cz Git - evince.git/commitdiff
Convert another gtk_paint_ call
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Nov 2010 05:05:43 +0000 (00:05 -0500)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 23 Dec 2010 18:13:26 +0000 (19:13 +0100)
cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c

index 55ef910133ee9116ec5ce5a6339bf2da1695eafb..185818c13ae4931f0a1d3b3a8a4395ccd7311228 100644 (file)
@@ -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);
     }