[gimp] Bug 703692 - Unable to Resize Large Left Dock Area



commit a2334b0b1592d0ea7cc8b37fec1e21b6a863a212
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jul 14 13:27:57 2013 +0200

    Bug 703692 - Unable to Resize Large Left Dock Area
    
    Small fix for the last commit: set a silly small initial size request
    on the wrap_box so it doesn't initially request too much and breaks
    dock layout deserialization.

 app/widgets/gimpcontainergridview.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcontainergridview.c b/app/widgets/gimpcontainergridview.c
index 65dcda6..0f6ace9 100644
--- a/app/widgets/gimpcontainergridview.c
+++ b/app/widgets/gimpcontainergridview.c
@@ -195,6 +195,11 @@ gimp_container_grid_view_init (GimpContainerGridView *grid_view)
   gimp_editor_set_show_name (GIMP_EDITOR (grid_view), TRUE);
 
   grid_view->wrap_box = gtk_hwrap_box_new (FALSE);
+
+  /* set a silly small and random size request so it doesn't initially
+   * request too much and breaks dock geometry deserialization
+   */
+  gtk_widget_set_size_request (grid_view->wrap_box, 16, 16);
   gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (box->scrolled_win),
                                          grid_view->wrap_box);
   viewport = gtk_widget_get_parent (grid_view->wrap_box);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]