From ede6f2ab59021d56329c4f9f85ced8fe26134f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 5 May 2017 14:06:01 +0200 Subject: Slightly rework clip handling always initialize clips to the (content) allocation, don't walk up the widget hierarchy in gtk_widget_set_clip, implement gtk_widget_size_allocate in GtkSeparator. This way we don't end up using uninitialized clip values. The entire clip handling is up for major rework since we can't and don't want to force every single widget to call _set_clip in size-allocate implementations. --- gtk/gtkcombobox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkcombobox.c') diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index b367b0a7e8..f5c7ce4a04 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -372,7 +372,7 @@ gtk_combo_box_size_allocate (GtkWidget *widget, { GtkComboBox *combo_box = GTK_COMBO_BOX (widget); GtkComboBoxPrivate *priv = combo_box->priv; - GtkAllocation clip; + GtkAllocation clip = *allocation; gtk_widget_size_allocate_with_baseline (priv->box, allocation, gtk_widget_get_allocated_baseline (widget)); -- cgit v1.2.1