sync with sylpheed 0.7.2cvs17
[claws.git] / src / filesel.c
index f09ec9d9046d8f10f7b2b0d7253a087013bcdf35..6422402d68bc30da170be9554e3c6a45f9282da6 100644 (file)
 #include <gdk/gdkkeysyms.h>
 #include <gtk/gtkwidget.h>
 #include <gtk/gtkfilesel.h>
+#include <gtk/gtkentry.h>
 #include <gtk/gtkmain.h>
 #include <gtk/gtksignal.h>
 #include <gtk/gtkeditable.h>
-#include <gtk/gtkentry.h>
 
 #include "main.h"
 #include "filesel.h"
@@ -164,6 +164,11 @@ GList *filesel_select_multiple_files(const gchar *title, const gchar *file)
 static void filesel_create(const gchar *title, gboolean multiple_files)
 {
        filesel = gtk_file_selection_new(title);
+       gtk_window_set_position(GTK_WINDOW(filesel), GTK_WIN_POS_CENTER);
+       gtk_window_set_modal(GTK_WINDOW(filesel), TRUE);
+       gtk_window_set_wmclass
+               (GTK_WINDOW(filesel), "file_selection", "Sylpheed");
+
        gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(filesel)->ok_button),
                           "clicked", GTK_SIGNAL_FUNC(filesel_ok_cb),
                           NULL);
@@ -177,8 +182,6 @@ static void filesel_create(const gchar *title, gboolean multiple_files)
                           GTK_SIGNAL_FUNC(key_pressed), NULL);
        MANAGE_WINDOW_SIGNALS_CONNECT(filesel);
 
-       gtk_window_set_modal(GTK_WINDOW(filesel), TRUE);
-
        if (multiple_files) {
                gtk_clist_set_selection_mode
                        (GTK_CLIST(GTK_FILE_SELECTION(filesel)->file_list),