summaryrefslogtreecommitdiff
path: root/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-10 00:15:16 +0100
committerinfirit <[email protected]>2014-12-10 00:54:06 +0100
commitc5ef437e5384cadc83087f3452aeda10938992a5 (patch)
treee1aad626caa4df22d95f3a6a2181fb8a6f1eb287 /cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
parent7abbbdbf7ccef858d5bdb18880c64eb2fca7e2c2 (diff)
downloadatril-c5ef437e5384cadc83087f3452aeda10938992a5.tar.bz2
atril-c5ef437e5384cadc83087f3452aeda10938992a5.tar.xz
Gtk3: Convert another gtk_paint_ call
Taken from evince commit: 1383dfb59b35d2d4576691ad3d9778de344c8e15 From: Matthias Clasen <[email protected]>
Diffstat (limited to 'cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c')
-rw-r--r--cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
index 2ae52737..8387178b 100644
--- a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
+++ b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
@@ -380,12 +380,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);
}