[gimp] app: in GimpToolPalette, allow single-column layout



commit e1398c030607c1abf564c18167767393937d3312
Author: Ell <ell_se yahoo com>
Date:   Thu Jan 30 02:36:42 2020 +0200

    app: in GimpToolPalette, allow single-column layout
    
    In GimpToolPalette, allow for a single-column layout, which is more
    practical now that we have tool groups.  Note that other widgets in
    the toolbox pane might still prevent a single-column layout, in
    particular, the empty-dock label.

 app/widgets/gimptoolpalette.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/widgets/gimptoolpalette.c b/app/widgets/gimptoolpalette.c
index 81e4ef6068..64d53248c1 100644
--- a/app/widgets/gimptoolpalette.c
+++ b/app/widgets/gimptoolpalette.c
@@ -195,7 +195,7 @@ gimp_tool_palette_get_n_tools (GimpToolPalette *palette,
   max_columns = (workarea.width  * 0.9) / *button_width;
   max_rows    = (workarea.height * 0.7) / *button_height;
 
-  *min_columns = MAX (2, n_tools / max_rows);
+  *min_columns = MAX (1, n_tools / max_rows);
   *min_rows    = MAX (1, n_tools / max_columns);
 
   return n_tools;


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