[gimp/gimp-2-10] Issue #4505: Adjust the Preferences size to fit on smaller displays.



commit 85656b2365a059a12a1debddc83f55f031de3266
Author: Jehan <jehan girinstud io>
Date:   Thu Sep 24 17:54:15 2020 +0200

    Issue #4505: Adjust the Preferences size to fit on smaller displays.
    
    Make some of the bigger Preferences pages automatically scrollable if
    needed. Based on my tests, this should be enough to fit on quite small
    displays, at least with the default themes, even the 1366×768 reported
    as too small. It should even fit in 1280×720 (in my tests, it did).
    
    Targetting even smaller screens may be overdoing it for an image
    manipulation software. We'll see if people still ask for a smaller
    dialog.
    
    (cherry picked from commit 2ec65109731401aa57c1337947d633ee15a35259)

 app/dialogs/preferences-dialog.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index b9edaf1ff1..37973176df 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -1166,6 +1166,7 @@ prefs_dialog_new (Gimp       *gimp,
                                   GIMP_HELP_PREFS_SYSTEM_RESOURCES,
                                   NULL,
                                   &top_iter);
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
 
   size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
@@ -1664,6 +1665,7 @@ prefs_dialog_new (Gimp       *gimp,
                                   GIMP_HELP_PREFS_TOOL_OPTIONS,
                                   NULL,
                                   &top_iter);
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
 
   size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
@@ -1794,6 +1796,7 @@ prefs_dialog_new (Gimp       *gimp,
                                   GIMP_HELP_PREFS_DEFAULT_GRID,
                                   &top_iter,
                                   &child_iter);
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
 
   /*  Grid  */
   editor = gimp_grid_editor_new (core_config->default_grid,
@@ -1814,6 +1817,7 @@ prefs_dialog_new (Gimp       *gimp,
                                   GIMP_HELP_PREFS_INTERFACE,
                                   NULL,
                                   &top_iter);
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
 
   /*  Language  */
 
@@ -2683,6 +2687,7 @@ prefs_dialog_new (Gimp       *gimp,
                                   GIMP_HELP_PREFS_DISPLAY,
                                   &top_iter,
                                   &child_iter);
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
 
   size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
@@ -2862,6 +2867,7 @@ prefs_dialog_new (Gimp       *gimp,
                                   GIMP_HELP_PREFS_IMAGE_WINDOW,
                                   NULL,
                                   &top_iter);
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
 
   size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
@@ -2954,6 +2960,8 @@ prefs_dialog_new (Gimp       *gimp,
                                   &top_iter,
                                   &child_iter);
 
+  gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box), vbox, TRUE);
+
   prefs_display_options_frame_add (gimp,
                                    G_OBJECT (display_config->default_view),
                                    _("Default Appearance in Normal Mode"),


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