[gtk+/wip/baedert/drawing: 58/371] stackcombo: Set clip
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 58/371] stackcombo: Set clip
- Date: Sun, 16 Jul 2017 15:26:42 +0000 (UTC)
commit 3b4392c73d080a9662fd87c0dbce0f8958df2292
Author: Timm Bäder <mail baedert org>
Date: Thu May 4 15:36:06 2017 +0200
stackcombo: Set clip
gtk/inspector/gtkstackcombo.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/gtkstackcombo.c b/gtk/inspector/gtkstackcombo.c
index e834fba..c0d5798 100644
--- a/gtk/inspector/gtkstackcombo.c
+++ b/gtk/inspector/gtkstackcombo.c
@@ -253,10 +253,12 @@ gtk_stack_combo_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
GtkStackCombo *self = GTK_STACK_COMBO (widget);
-
- GTK_WIDGET_CLASS (gtk_stack_combo_parent_class)->size_allocate (widget, allocation);
+ GtkAllocation clip = *allocation;
gtk_widget_size_allocate (GTK_WIDGET (self->combo), allocation);
+ gtk_widget_get_clip (GTK_WIDGET (self->combo), &clip);
+
+ gtk_widget_set_clip (widget, &clip);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]