[evince/gtk-style-context] Convert another gtk_paint_ call
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gtk-style-context] Convert another gtk_paint_ call
- Date: Tue, 16 Nov 2010 05:07:01 +0000 (UTC)
commit aeea2ca1f8063094f59be8bd6904685a176cf653
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 16 00:05:43 2010 -0500
Convert another gtk_paint_ call
.../gimpcellrenderertoggle.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
index 55ef910..185818c 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]