[gimp/metadata-browser] Bug 666065 - "you can drop dockable dialog" of the toolbox



commit fb73313bb9e5a97491ae30d1f0fa0baf694c8159
Author: Michael Natterer <mitch gimp org>
Date:   Fri Dec 16 09:40:54 2011 +0100

    Bug 666065 - "you can drop dockable dialog" of the toolbox
    
    Set the height request of the "You can drop dockable dialogs here"
    label to 0, so the toolbox can be properly resized to its minimum
    again.

 app/widgets/gimppanedbox.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimppanedbox.c b/app/widgets/gimppanedbox.c
index dfe9801..d04c141 100644
--- a/app/widgets/gimppanedbox.c
+++ b/app/widgets/gimppanedbox.c
@@ -137,14 +137,16 @@ gimp_paned_box_init (GimpPanedBox *paned_box)
   /* Instructions label
    *
    * Size a small size request so it don't mess up dock window layouts
-   * during startup
+   * during startup; in particular, set its height request to 0 so it
+   * doesn't contribute to the minimum height of the toolbox.
    */
   paned_box->p->instructions = gtk_label_new (INSTRUCTIONS_TEXT);
   gtk_misc_set_padding (GTK_MISC (paned_box->p->instructions),
                         INSTRUCTIONS_TEXT_PADDING, INSTRUCTIONS_TEXT_PADDING);
   gtk_label_set_line_wrap (GTK_LABEL (paned_box->p->instructions), TRUE);
-  gtk_label_set_justify (GTK_LABEL (paned_box->p->instructions), GTK_JUSTIFY_CENTER);
-  gtk_widget_set_size_request (paned_box->p->instructions, 100, 100);
+  gtk_label_set_justify (GTK_LABEL (paned_box->p->instructions),
+                         GTK_JUSTIFY_CENTER);
+  gtk_widget_set_size_request (paned_box->p->instructions, 100, 0);
   gimp_label_set_attributes (GTK_LABEL (paned_box->p->instructions),
                              PANGO_ATTR_STYLE, PANGO_STYLE_ITALIC,
                              -1);



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