summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-07-18 16:37:18 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-07-18 16:37:18 -0400
commit51a5cfc7836dab545a4a5772a35371dbc19f537b (patch)
treea65775c3cf2b7d2e2c38ed6a9f35b9b4c8c07fb9 /gtk/gtkswitch.c
parentc2907b8532698d8a60bcecb80c6084b9711a55a9 (diff)
downloadgtk+-51a5cfc7836dab545a4a5772a35371dbc19f537b.tar.gz
GtkSwitch: implement clipping
So switches can have shadows, too. https://bugzilla.gnome.org/show_bug.cgi?id=733360
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 5677fa8b88..9ba4b65b20 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -51,6 +51,7 @@
#include "gtkactionable.h"
#include "a11y/gtkswitchaccessible.h"
#include "gtkactionhelper.h"
+#include "gtkwidgetprivate.h"
#include <math.h>
@@ -388,6 +389,8 @@ gtk_switch_size_allocate (GtkWidget *widget,
allocation->y,
allocation->width,
allocation->height);
+
+ _gtk_widget_set_simple_clip (widget);
}
static void