[gimp/gtk3-port: 93/236] app: add ugly workaround to make the icon view adapt to view size changes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 93/236] app: add ugly workaround to make the icon view adapt to view size changes
- Date: Wed, 27 Jul 2011 18:56:21 +0000 (UTC)
commit ed97709b4c6c5a0612e0710a9e5b6db3f996b8a0
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 22 20:00:36 2010 +0200
app: add ugly workaround to make the icon view adapt to view size changes
app/widgets/gimpcontainericonview.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcontainericonview.c b/app/widgets/gimpcontainericonview.c
index 0ccf154..27b674b 100644
--- a/app/widgets/gimpcontainericonview.c
+++ b/app/widgets/gimpcontainericonview.c
@@ -583,6 +583,14 @@ gimp_container_icon_view_set_view_size (GimpContainerView *view)
{
gtk_icon_view_set_columns (icon_view->view, -1);
gtk_icon_view_set_item_width (icon_view->view, -1);
+
+ /* ugly workaround to force the icon view to invalidate all its
+ * cached icon sizes
+ */
+ gtk_icon_view_set_item_orientation (icon_view->view,
+ GTK_ORIENTATION_VERTICAL);
+ gtk_icon_view_set_item_orientation (icon_view->view,
+ GTK_ORIENTATION_HORIZONTAL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]