diff options
Diffstat (limited to 'gtk/gtkeventbox.c')
-rw-r--r-- | gtk/gtkeventbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c index b18e1646a..4fb341d31 100644 --- a/gtk/gtkeventbox.c +++ b/gtk/gtkeventbox.c @@ -162,8 +162,8 @@ gtk_event_box_size_allocate (GtkWidget *widget, child_allocation.x = 0; child_allocation.y = 0; - child_allocation.width = allocation->width - GTK_CONTAINER (widget)->border_width * 2; - child_allocation.height = allocation->height - GTK_CONTAINER (widget)->border_width * 2; + child_allocation.width = MAX (allocation->width - GTK_CONTAINER (widget)->border_width * 2, 0); + child_allocation.height = MAX (allocation->height - GTK_CONTAINER (widget)->border_width * 2, 0); if (GTK_WIDGET_REALIZED (widget)) { |