projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d9d878
)
iconview: Don't add item-padding
author
Benjamin Otte
<otte@redhat.com>
Thu, 14 Jun 2012 05:35:15 +0000
(07:35 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 14 Jun 2012 05:41:40 +0000
(07:41 +0200)
... to item sizes when there are no items.
gtk/gtkiconview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconview.c
b/gtk/gtkiconview.c
index 63f67a52b551110f98f6c8eeb000c9c706fb461a..e9182713d92c8de1decbb00569b5c5d1e1208dee 100644
(file)
--- a/
gtk/gtkiconview.c
+++ b/
gtk/gtkiconview.c
@@
-1467,6
+1467,13
@@
gtk_icon_view_get_preferred_item_size (GtkIconView *icon_view,
GtkCellAreaContext *context;
GList *items;
+ if (priv->items == NULL)
+ {
+ *minimum = 0;
+ *natural = 0;
+ return;
+ }
+
context = gtk_cell_area_create_context (priv->cell_area);
for_size -= 2 * priv->item_padding;