eog r4470 - trunk/src
- From: lucasr svn gnome org
- To: svn-commits-list gnome org
- Subject: eog r4470 - trunk/src
- Date: Sat, 15 Mar 2008 15:23:52 +0000 (GMT)
Author: lucasr
Date: Sat Mar 15 15:23:52 2008
New Revision: 4470
URL: http://svn.gnome.org/viewvc/eog?rev=4470&view=rev
Log:
Restore image status after saving it.
Modified:
trunk/src/eog-image.c
Modified: trunk/src/eog-image.c
==============================================================================
--- trunk/src/eog-image.c (original)
+++ trunk/src/eog-image.c Sat Mar 15 15:23:52 2008
@@ -1559,6 +1559,7 @@
eog_image_save_by_info (EogImage *img, EogImageSaveInfo *source, GError **error)
{
EogImagePrivate *priv;
+ EogImageStatus prev_status;
gboolean success = FALSE;
GFile *tmp_file;
char *tmp_file_path;
@@ -1568,6 +1569,8 @@
priv = img->priv;
+ prev_status = priv->status;
+
/* Image is now being saved */
priv->status = EOG_IMAGE_STATUS_SAVING;
@@ -1623,7 +1626,7 @@
g_free (tmp_file_path);
g_object_unref (tmp_file);
- priv->status = EOG_IMAGE_STATUS_UNKNOWN;
+ priv->status = prev_status;
return success;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]