dialogs: Improve Welcome Dialog height on small screens

This patch makes the first page of the
Welcome Dialog scrollable vertically.
This should help reduce the screen height
for users with smaller screen sizes.
This commit is contained in:
Alx Sa 2024-08-03 17:40:36 +00:00 committed by Jehan
parent 5891854fa6
commit 766e7325ff
1 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,11 @@ welcome_dialog_new (Gimp *gimp,
gtk_widget_set_margin_start (main_vbox, 0);
gtk_widget_set_margin_end (main_vbox, 0);
/* Make the first page scrollable to prevent height issues on
* smaller screens */
gimp_prefs_box_set_page_scrollable (GIMP_PREFS_BOX (prefs_box),
main_vbox, TRUE);
welcome_dialog_create_welcome_page (gimp, dialog, main_vbox);
gtk_widget_set_visible (main_vbox, TRUE);