]> Pileus Git - ~andy/gtk/commit
iconview: gtk_icon_view_compute_n_items_for_size bugfix
authorHans de Goede <hdegoede@redhat.com>
Tue, 12 Jun 2012 15:39:50 +0000 (17:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 14 Jun 2012 05:41:39 +0000 (07:41 +0200)
commitc32a5a80b7a3342a3c4ca9a79102c4489f0391d9
treee18176ba21815a6f53dca197966059b4e37b99e3
parentec755541ab695ce6cde530cf2d8ad5f031de85d1
iconview: gtk_icon_view_compute_n_items_for_size bugfix

While working on the "iconview: Don't shrink items" patch I noticed that
gtk_icon_view_compute_n_items_for_size modifies the natural and minimum
item sizes it got from gtk_icon_view_get_preferred_item_size when
calculating the max number of items which will fit, but later on it
checks against these sizes when calculating the item_size, and these
checks expect these values to be unmodified.

This patch fixes this by modifying the natural and minimum values in
advance and doing all computations with modified values.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
gtk/gtkiconview.c