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



commit 2ec65109731401aa57c1337947d633ee15a35259
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.

 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 d26293e919..4e8f5d13d7 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -1165,6 +1165,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);
 
@@ -1660,6 +1661,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);
 
@@ -1791,6 +1793,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,
@@ -1811,6 +1814,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  */
 
@@ -2655,6 +2659,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);
 
@@ -2845,6 +2850,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);
 
@@ -2937,6 +2943,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]