adopt to changes gimp_documents_save() API.
2007-12-20 Sven Neumann <sven@gimp.org> * app/actions/documents-commands.c (documents_clear_cmd_callback): adopt to changes gimp_documents_save() API. svn path=/trunk/; revision=24405
This commit is contained in:

committed by
Sven Neumann

parent
1542f99678
commit
4c34b6ef38
@ -1,3 +1,8 @@
|
||||
2007-12-20 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/actions/documents-commands.c (documents_clear_cmd_callback):
|
||||
adopt to changes gimp_documents_save() API.
|
||||
|
||||
2007-12-19 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimp-contexts.[ch]
|
||||
|
@ -216,8 +216,17 @@ documents_clear_cmd_callback (GtkAction *action,
|
||||
|
||||
if (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK)
|
||||
{
|
||||
gimp_container_clear (context->gimp->documents);
|
||||
gimp_documents_save (context->gimp);
|
||||
Gimp *gimp = context->gimp;
|
||||
GError *error = NULL;
|
||||
|
||||
gimp_container_clear (gimp->documents);
|
||||
|
||||
if (! gimp_documents_save (gimp, &error))
|
||||
{
|
||||
gimp_message (gimp, G_OBJECT (dialog), GIMP_MESSAGE_ERROR,
|
||||
"%s", error->message);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
}
|
||||
|
||||
gtk_widget_destroy (dialog);
|
||||
|
Reference in New Issue
Block a user