[gimp] app: set the name of the open dialog again in file_open_dialog_show()



commit 865bb627e01bb9c83ed7f84038a406ef6e2b3db5
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jan 6 05:12:03 2016 +0100

    app: set the name of the open dialog again in file_open_dialog_show()
    
    so we get back the "Open Image as Layers" window title. Seems it was
    gone since I broke it in 2008.

 app/actions/file-commands.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/app/actions/file-commands.c b/app/actions/file-commands.c
index 4a48030..7f261f3 100644
--- a/app/actions/file-commands.c
+++ b/app/actions/file-commands.c
@@ -606,10 +606,16 @@ file_open_dialog_show (Gimp        *gimp,
                                   GIMP_FILE_OPEN_LAST_FILE_KEY);
 
       if (file)
-        gtk_file_chooser_set_file (GTK_FILE_CHOOSER (dialog), file, NULL);
+        {
+          gtk_file_chooser_set_file (GTK_FILE_CHOOSER (dialog), file, NULL);
+        }
       else if (gimp->default_folder)
-        gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (dialog),
-                                                  gimp->default_folder, NULL);
+        {
+          gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (dialog),
+                                                    gimp->default_folder, NULL);
+        }
+
+      gtk_window_set_title (GTK_WINDOW (dialog), title);
 
       gimp_open_dialog_set_image (GIMP_OPEN_DIALOG (dialog),
                                   image, open_as_layers);


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