gimp r26571 - in trunk: . app/actions
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26571 - in trunk: . app/actions
- Date: Fri, 15 Aug 2008 07:38:32 +0000 (UTC)
Author: neo
Date: Fri Aug 15 07:38:32 2008
New Revision: 26571
URL: http://svn.gnome.org/viewvc/gimp?rev=26571&view=rev
Log:
2008-08-15 Sven Neumann <sven gimp org>
* app/actions/file-commands.c (file_save_cmd_callback): save new
images, even if they are not marked dirty.
Modified:
trunk/ChangeLog
trunk/app/actions/file-commands.c
Modified: trunk/app/actions/file-commands.c
==============================================================================
--- trunk/app/actions/file-commands.c (original)
+++ trunk/app/actions/file-commands.c Fri Aug 15 07:38:32 2008
@@ -195,6 +195,7 @@
GimpImage *image;
GtkWidget *widget;
GimpSaveMode save_mode;
+ const gchar *uri;
gboolean saved = FALSE;
return_if_no_display (display, data);
return_if_no_widget (widget, data);
@@ -206,24 +207,25 @@
if (! gimp_image_get_active_drawable (image))
return;
+ uri = gimp_object_get_name (GIMP_OBJECT (image));
+
switch (save_mode)
{
case GIMP_SAVE_MODE_SAVE:
case GIMP_SAVE_MODE_SAVE_AND_CLOSE:
- /* Only save if the image has been modified */
- if (image->dirty ||
- ! GIMP_GUI_CONFIG (image->gimp->config)->trust_dirty_flag)
+ /* Only save if the image has been modified, or if it is new. */
+ if ((image->dirty ||
+ ! GIMP_GUI_CONFIG (image->gimp->config)->trust_dirty_flag) ||
+ uri == NULL)
{
- const gchar *uri;
- GimpPlugInProcedure *save_proc = NULL;
-
- uri = gimp_object_get_name (GIMP_OBJECT (image));
- save_proc = gimp_image_get_save_proc (image);
+ GimpPlugInProcedure *save_proc = gimp_image_get_save_proc (image);
if (uri && ! save_proc)
- save_proc =
- file_procedure_find (image->gimp->plug_in_manager->save_procs,
- uri, NULL);
+ {
+ save_proc =
+ file_procedure_find (image->gimp->plug_in_manager->save_procs,
+ uri, NULL);
+ }
if (uri && save_proc)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]