[gtk+/wip/baedert/drawing: 70/186] stackcombo: Set clip
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 70/186] stackcombo: Set clip
- Date: Tue, 16 May 2017 06:10:39 +0000 (UTC)
commit 8541513429e6637729d636e0cb52bb2a3184fc17
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]