diff --git a/ChangeLog b/ChangeLog index 9280614b60..9938c6f74b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-20 Sven Neumann + + * app/actions/documents-commands.c (documents_clear_cmd_callback): + adopt to changes gimp_documents_save() API. + 2007-12-19 Michael Natterer * app/core/gimp-contexts.[ch] diff --git a/app/actions/documents-commands.c b/app/actions/documents-commands.c index cf5577fe40..7323737129 100644 --- a/app/actions/documents-commands.c +++ b/app/actions/documents-commands.c @@ -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);