[gimp] app: get rid of "entered_filename" in file-open-dialog.c



commit e97b1701ae82511d7fe4346c32ec5e045f7ba0ff
Author: Michael Natterer <mitch gimp org>
Date:   Sat Nov 17 18:11:42 2012 +0100

    app: get rid of "entered_filename" in file-open-dialog.c
    
    it's always identical to "uri".

 app/dialogs/file-open-dialog.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/app/dialogs/file-open-dialog.c b/app/dialogs/file-open-dialog.c
index fe067aa..674ccb2 100644
--- a/app/dialogs/file-open-dialog.c
+++ b/app/dialogs/file-open-dialog.c
@@ -53,12 +53,10 @@ static void       file_open_dialog_response    (GtkWidget           *open_dialog
 static GimpImage *file_open_dialog_open_image  (GtkWidget           *open_dialog,
                                                 Gimp                *gimp,
                                                 const gchar         *uri,
-                                                const gchar         *entered_filename,
                                                 GimpPlugInProcedure *load_proc);
 static gboolean   file_open_dialog_open_layers (GtkWidget           *open_dialog,
                                                 GimpImage           *image,
                                                 const gchar         *uri,
-                                                const gchar         *entered_filename,
                                                 GimpPlugInProcedure *load_proc);
 
 
@@ -155,7 +153,6 @@ file_open_dialog_response (GtkWidget *open_dialog,
               dialog->image = file_open_dialog_open_image (open_dialog,
                                                            gimp,
                                                            list->data,
-                                                           list->data,
                                                            dialog->file_proc);
 
               if (dialog->image)
@@ -164,7 +161,6 @@ file_open_dialog_response (GtkWidget *open_dialog,
           else if (file_open_dialog_open_layers (open_dialog,
                                                  dialog->image,
                                                  list->data,
-                                                 list->data,
                                                  dialog->file_proc))
             {
               success = TRUE;
@@ -175,7 +171,6 @@ file_open_dialog_response (GtkWidget *open_dialog,
           if (file_open_dialog_open_image (open_dialog,
                                            gimp,
                                            list->data,
-                                           list->data,
                                            dialog->file_proc))
             {
               success = TRUE;
@@ -210,7 +205,6 @@ static GimpImage *
 file_open_dialog_open_image (GtkWidget           *open_dialog,
                              Gimp                *gimp,
                              const gchar         *uri,
-                             const gchar         *entered_filename,
                              GimpPlugInProcedure *load_proc)
 {
   GimpImage         *image;
@@ -220,7 +214,7 @@ file_open_dialog_open_image (GtkWidget           *open_dialog,
   image = file_open_with_proc_and_display (gimp,
                                            gimp_get_user_context (gimp),
                                            GIMP_PROGRESS (open_dialog),
-                                           uri, entered_filename, FALSE,
+                                           uri, uri, FALSE,
                                            load_proc,
                                            &status, &error);
 
@@ -242,7 +236,6 @@ static gboolean
 file_open_dialog_open_layers (GtkWidget           *open_dialog,
                               GimpImage           *image,
                               const gchar         *uri,
-                              const gchar         *entered_filename,
                               GimpPlugInProcedure *load_proc)
 {
   GList             *new_layers;



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