app: Save maximize state of image window in...

...multi-window-mode too.
This commit is contained in:
Michael Henning 2023-10-10 21:56:29 -04:00 committed by Alx Sa
parent f12687e9f5
commit 9e1c6aa02b
3 changed files with 14 additions and 10 deletions

View file

@ -1037,6 +1037,7 @@ static GList *
gimp_image_window_get_aux_info (GimpSessionManaged *session_managed)
{
GList *aux_info = NULL;
GimpSessionInfoAux *aux;
GimpImageWindowPrivate *private;
GimpGuiConfig *config;
@ -1047,7 +1048,6 @@ gimp_image_window_get_aux_info (GimpSessionManaged *session_managed)
if (config->single_window_mode)
{
GimpSessionInfoAux *aux;
GtkAllocation allocation;
gchar widthbuf[128];
@ -1065,12 +1065,12 @@ gimp_image_window_get_aux_info (GimpSessionManaged *session_managed)
aux = gimp_session_info_aux_new (GIMP_IMAGE_WINDOW_RIGHT_DOCKS_WIDTH,
widthbuf);
aux_info = g_list_append (aux_info, aux);
}
aux = gimp_session_info_aux_new (GIMP_IMAGE_WINDOW_MAXIMIZED,
gimp_image_window_is_maximized (GIMP_IMAGE_WINDOW (session_managed)) ?
"yes" : "no");
aux_info = g_list_append (aux_info, aux);
}
return aux_info;
}

View file

@ -92,7 +92,9 @@
(factory-entry "gimp-empty-image-window")
(position 140 30)
(size 610 190)
(open-on-exit))
(open-on-exit)
(aux-info
(maximized "no")))
(session-info "toplevel"
(factory-entry "gimp-single-image-window")
(position 10 40)

View file

@ -107,7 +107,9 @@
(factory-entry "gimp-empty-image-window")
(position 140 30)
(size 610 190)
(open-on-exit))
(open-on-exit)
(aux-info
(maximized "no")))
(session-info "toplevel"
(factory-entry "gimp-single-image-window")
(position 10 40)