replace deprecated gtk_window_set_policy
[claws.git] / src / import.c
index 6f5c31576e05cf302a7627acf7bae17d42c774d3..b6bc4186be8598c453a1bf2e6e23c03644c185d4 100644 (file)
@@ -147,7 +147,7 @@ static void import_create(void)
        gtk_container_set_border_width(GTK_CONTAINER(window), 5);
        gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
        gtk_window_set_modal(GTK_WINDOW(window), TRUE);
-       gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE);
+       gtk_window_set_resizable(GTK_WINDOW(window), TRUE);
        g_signal_connect(G_OBJECT(window), "delete_event",
                         G_CALLBACK(delete_event), NULL);
        g_signal_connect(G_OBJECT(window), "key_press_event",
@@ -235,7 +235,7 @@ static void import_filesel_cb(GtkWidget *widget, gpointer data)
 {
        gchar *filename;
 
-       filename = filesel_select_file(_("Select importing file"), NULL);
+       filename = filesel_select_file_open(_("Select importing file"), NULL);
        if (!filename) return;
 
        if (g_getenv ("G_BROKEN_FILENAMES")) {