Commit f77b7335 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

panel-widget: don't call size_allocate width negative size

parent 351771e2
......@@ -1421,6 +1421,10 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
challoc.y = ad->constrained;
}
ad->min_cells = ad->cells;
challoc.width = MAX (challoc.width, 0);
challoc.height = MAX (challoc.height, 0);
gtk_widget_size_allocate(ad->applet,&challoc);
i += ad->cells;
}
......@@ -1484,6 +1488,9 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
challoc.y = ad->constrained;
}
challoc.width = MAX (challoc.width, 0);
challoc.height = MAX (challoc.height, 0);
gtk_widget_size_allocate(ad->applet,&challoc);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment