blob: ad9070b3e9a2b297679800100175117c7a3924c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-aa,v 1.6 2010/11/24 20:29:05 drochner Exp $
--- eel/eel-wrap-table.c.orig 2010-11-13 11:59:00.000000000 +0000
+++ eel/eel-wrap-table.c
@@ -521,6 +521,10 @@ wrap_table_layout (EelWrapTable *wrap_ta
pos.x = content_bounds.x0;
pos.y = content_bounds.y0;
+ /* XXX hack: avoid crash if no icons are found */
+ if (!max_child_dimensions.width)
+ max_child_dimensions.width = 1;
+
gtk_widget_get_allocation (GTK_WIDGET (wrap_table), &allocation);
num_cols = wrap_table_get_num_fitting (allocation.width -
gtk_container_get_border_width (GTK_CONTAINER (wrap_table)) * 2,
|