mirror of https://github.com/GNOME/gimp.git
app: Rememeber if image windows are opened
Rememeber if image windows are opened because we want the gimp_session_info_restore() code to run for the single-image window once that code is in place.
This commit is contained in:
parent
a456a70bfd
commit
10aa3921a0
|
@ -82,7 +82,7 @@ GimpContainer *global_recent_docks = NULL;
|
|||
singleton /* singleton */, \
|
||||
TRUE /* session_managed */, \
|
||||
remember_size /* remember_size */, \
|
||||
FALSE /* remember_if_open */, \
|
||||
TRUE /* remember_if_open */, \
|
||||
FALSE /* hideable */, \
|
||||
TRUE /* image_window */, \
|
||||
FALSE /* dockable */}
|
||||
|
|
|
@ -90,7 +90,8 @@
|
|||
(session-info "toplevel"
|
||||
(factory-entry "gimp-empty-image-window")
|
||||
(position 140 30)
|
||||
(size 610 190))
|
||||
(size 610 190)
|
||||
(open-on-exit))
|
||||
(session-info "toplevel"
|
||||
(factory-entry "gimp-single-image-window")
|
||||
(position 10 40)
|
||||
|
|
|
@ -90,7 +90,8 @@
|
|||
(session-info "toplevel"
|
||||
(factory-entry "gimp-empty-image-window")
|
||||
(position 140 30)
|
||||
(size 610 190))
|
||||
(size 610 190)
|
||||
(open-on-exit))
|
||||
(session-info "toplevel"
|
||||
(factory-entry "gimp-single-image-window")
|
||||
(position 10 40)
|
||||
|
|
|
@ -488,15 +488,18 @@ gimp_session_info_restore (GimpSessionInfo *info,
|
|||
info);
|
||||
}
|
||||
|
||||
/* We expect expect there to always be docks. In sessionrc files
|
||||
* from <= 2.6 not all dock window entries had dock entries, but we
|
||||
* take care of that during sessionrc parsing
|
||||
*/
|
||||
for (iter = info->p->docks; iter; iter = g_list_next (iter))
|
||||
gimp_session_info_dock_restore ((GimpSessionInfoDock *)iter->data,
|
||||
factory,
|
||||
screen,
|
||||
GIMP_DOCK_CONTAINER (dialog));
|
||||
if (dialog && GIMP_IS_DOCK_CONTAINER (dialog))
|
||||
{
|
||||
/* We expect expect there to always be docks. In sessionrc files
|
||||
* from <= 2.6 not all dock window entries had dock entries, but we
|
||||
* take care of that during sessionrc parsing
|
||||
*/
|
||||
for (iter = info->p->docks; iter; iter = g_list_next (iter))
|
||||
gimp_session_info_dock_restore ((GimpSessionInfoDock *)iter->data,
|
||||
factory,
|
||||
screen,
|
||||
GIMP_DOCK_CONTAINER (dialog));
|
||||
}
|
||||
|
||||
g_object_unref (info);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue