summaryrefslogtreecommitdiff
path: root/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-12 18:55:31 +0200
committerraveit65 <[email protected]>2017-08-12 18:55:31 +0200
commit94c2d848c4c71e600d92cc7f0a2b9e75ddf0feab (patch)
tree2f0eac5efe4aa817e02bdad34e23949416fa2ad9 /cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
parentc91e919ac36a0a34358fd4cd698e8c9e891502cc (diff)
downloadatril-94c2d848c4c71e600d92cc7f0a2b9e75ddf0feab.tar.bz2
atril-94c2d848c4c71e600d92cc7f0a2b9e75ddf0feab.tar.xz
sidebar-layers: Make it actually usable and fix a runtime warning
Expand the scrolled window vertical so that you can actually see the content of the widget. This also turned up a missing gtk_style_context_save () in gimpcellrenderertoggle.c. So fix that as well. partial inspired from: https://github.com/linuxmint/xreader/commit/6b6ae7f
Diffstat (limited to 'cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c')
-rw-r--r--cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
index 0addfa72..875d87bb 100644
--- a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
+++ b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
@@ -343,6 +343,7 @@ gimp_cell_renderer_toggle_render (GtkCellRenderer *cell,
gdk_rectangle_intersect (&clip_rect, cell_area, &draw_rect))
{
cairo_save (cr);
+ gtk_style_context_save (context);
gdk_cairo_rectangle (cr, &draw_rect);
cairo_clip (cr);
gtk_render_frame (context, //gtk_widget_get_style_context (widget),