GtkSwitch: implement clipping

So switches can have shadows, too.

https://bugzilla.gnome.org/show_bug.cgi?id=733360
This commit is contained in:
Matthias Clasen 2014-07-18 16:37:18 -04:00
parent c2907b8532
commit 51a5cfc783

View File

@ -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