[gtk+] GtkSwitch: implement clipping
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkSwitch: implement clipping
- Date: Fri, 18 Jul 2014 20:38:01 +0000 (UTC)
commit 51a5cfc7836dab545a4a5772a35371dbc19f537b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 18 16:37:18 2014 -0400
GtkSwitch: implement clipping
So switches can have shadows, too.
https://bugzilla.gnome.org/show_bug.cgi?id=733360
gtk/gtkswitch.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 5677fa8..9ba4b65 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]