use claws' semantics for getting folder item when importing an mbox file to a folder...
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Fri, 11 Jan 2002 19:47:30 +0000 (19:47 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Fri, 11 Jan 2002 19:47:30 +0000 (19:47 +0000)
AUTHORS
ChangeLog.claws
configure.in
src/import.c

diff --git a/AUTHORS b/AUTHORS
index 4100ba8..508870a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -104,3 +104,4 @@ contributors (beside the above; based on Changelog)
        Fredrik Olofsen
        Gustavo Noronha Silva
        Simon 'corecode' Schubert
+       Dale P. Smith
index a25d0d5..7f31348 100644 (file)
@@ -1,3 +1,10 @@
+2002-01-11 [alfons]    0.6.6claws50
+
+       * src/import.c
+               use claws' semantics for getting folder item when
+               importing an mbox file into a folder 
+               (submitted by Dale P. Smith)
+
 2002-01-11 [christoph] 0.6.6claws49
 
        * src/prefs.h
index 529ec87..890d014 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws48
+EXTRA_VERSION=claws50
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index bd89968..3b83ea1 100644 (file)
@@ -95,7 +95,7 @@ gint import_mbox(FolderItem *default_dest)
                        if (!destdir || !*destdir) {
                                dest = folder_find_item_from_path(INBOX_DIR);
                        } else
-                               dest = folder_find_item_from_path(destdir);
+                               dest = folder_find_item_from_identifier(destdir);
 
                        if (!dest) {
                                g_warning("Can't find the folder.\n");
@@ -226,10 +226,14 @@ static void import_filesel_cb(GtkWidget *widget, gpointer data)
 static void import_destsel_cb(GtkWidget *widget, gpointer data)
 {
        FolderItem *dest;
+       gchar *path;
 
        dest = foldersel_folder_sel(NULL, NULL);
-       if (dest && dest->path)
-               gtk_entry_set_text(GTK_ENTRY(dest_entry), dest->path);
+       if (!dest)
+                return;
+       path = folder_item_get_identifier(dest);
+       gtk_entry_set_text(GTK_ENTRY(dest_entry), path);
+       g_free(path);
 }
 
 static gint delete_event(GtkWidget *widget, GdkEventAny *event, gpointer data)