2006-02-09 [wwp] 2.0.0cvs38
[claws.git] / src / gtk / filesel.c
index bc273f27850a94f3d4694986719486278069a5bd..d3ed92c484d11cc4141dc90b9af29f9536bbd3c2 100644 (file)
@@ -95,8 +95,8 @@ static GList *filesel_create(const gchar *title, const gchar *path,
 
        if (action == GTK_FILE_CHOOSER_ACTION_OPEN) {
                GtkImage *preview;
-               preview = gtk_image_new ();
-               gtk_file_chooser_set_preview_widget (chooser, preview);
+               preview = GTK_IMAGE(gtk_image_new ());
+               gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER(chooser), GTK_WIDGET(preview));
                g_signal_connect (chooser, "update-preview",
                            G_CALLBACK (update_preview_cb), preview);