[gimp] Move gimp_session_info_clear_info() into gimp_session_info_restore()
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Move gimp_session_info_clear_info() into gimp_session_info_restore()
- Date: Tue, 14 Jun 2011 21:35:26 +0000 (UTC)
commit 00d6f8e6555d439142414c44d7cad19b7b0b82a0
Author: Martin Nordholts <martinn src gnome org>
Date: Tue Jun 14 22:15:01 2011 +0200
Move gimp_session_info_clear_info() into gimp_session_info_restore()
All callers of gimp_session_info_restore() call
gimp_session_info_clear_info() afterwards, so move that into the
function instead.
app/actions/windows-commands.c | 1 -
app/widgets/gimpdialogfactory.c | 1 -
app/widgets/gimpsessioninfo.c | 2 ++
3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/windows-commands.c b/app/actions/windows-commands.c
index f03fee0..5c93dfe 100644
--- a/app/actions/windows-commands.c
+++ b/app/actions/windows-commands.c
@@ -150,7 +150,6 @@ windows_open_recent_cmd_callback (GtkAction *action,
info);
gimp_session_info_restore (info, gimp_dialog_factory_get_singleton ());
- gimp_session_info_clear_info (info);
g_object_unref (info);
}
diff --git a/app/widgets/gimpdialogfactory.c b/app/widgets/gimpdialogfactory.c
index 932e773..3fc17f3 100644
--- a/app/widgets/gimpdialogfactory.c
+++ b/app/widgets/gimpdialogfactory.c
@@ -1390,7 +1390,6 @@ gimp_dialog_factory_restore (GimpDialogFactory *factory)
if (gimp_session_info_get_open (info))
{
gimp_session_info_restore (info, factory);
- gimp_session_info_clear_info (info);
}
else
{
diff --git a/app/widgets/gimpsessioninfo.c b/app/widgets/gimpsessioninfo.c
index cd6f983..6654e4c 100644
--- a/app/widgets/gimpsessioninfo.c
+++ b/app/widgets/gimpsessioninfo.c
@@ -526,6 +526,8 @@ gimp_session_info_restore (GimpSessionInfo *info,
}
}
+ gimp_session_info_clear_info (info);
+
g_object_unref (info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]