[gthumb] save task: use the file object to get the filename



commit d5c5de0b3817ecdf58553a7c123cea7e3f1749d7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jan 22 20:03:01 2013 +0100

    save task: use the file object to get the filename

 gthumb/gth-save-image-task.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-save-image-task.c b/gthumb/gth-save-image-task.c
index 60a5585..6edffc7 100644
--- a/gthumb/gth-save-image-task.c
+++ b/gthumb/gth-save-image-task.c
@@ -155,9 +155,7 @@ save_image (GthSaveImageTask *self)
 	char *filename;
 	char *description;
 
-	filename = g_strdup (g_file_info_get_display_name (self->priv->file_data->info));
-	if (filename == NULL)
-		filename = g_file_get_parse_name (self->priv->file_data->file);
+	filename = g_file_get_parse_name (self->priv->file_data->file);
 	/* Translators: %s is a filename */
 	description = g_strdup_printf (_("Saving '%s'"), filename);
 	gth_task_progress (GTH_TASK (self), description, NULL, TRUE, 0.0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]