* src/folderview.[ch]
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 30 Jul 2002 23:26:59 +0000 (23:26 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 30 Jul 2002 23:26:59 +0000 (23:26 +0000)
* src/mainwindow.c
        replace "Rescan all folders..." with
        "Check all folders for new messages..."

ChangeLog.claws
configure.in
src/folderview.c
src/folderview.h
src/mainwindow.c

index c9c4e94..b288db1 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-31 [christoph] 0.8.1claws1
+
+       * src/folderview.[ch]
+       * src/mainwindow.c
+               replace "Rescan all folders..." with
+               "Check all folders for new messages..."
+
 2002-07-30 [paul]      0.8.1claws
 
        * version 0.8.1claws released
index 5b3f712..3cdaa86 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws
+EXTRA_VERSION=claws1
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index efb5661..dd82666 100644 (file)
@@ -878,6 +878,28 @@ void folderview_check_new(Folder *folder)
        folder_write_list();
 }
 
+void folderview_check_new_all()
+{
+       GList *list;
+       GtkWidget *window;
+
+       inc_lock();
+       window = label_window_create(_("Checking all folders for new messages..."));
+
+       list = folder_get_list();
+       for (; list != NULL; list = list->next) {
+               Folder *folder = list->data;
+
+               folderview_check_new(folder);
+       }
+
+       folder_write_list();
+       folderview_set_all();
+
+       gtk_widget_destroy(window);
+       inc_unlock();
+}
+
 static gboolean folderview_search_new_recursive(GtkCTree *ctree,
                                                GtkCTreeNode *node)
 {
index 391dedd..e2a1ae1 100644 (file)
@@ -70,6 +70,7 @@ void folderview_update_msg_num                (FolderView     *folderview,
 void folderview_rescan_tree            (Folder         *folder);
 void folderview_rescan_all             (void);
 void folderview_check_new              (Folder         *folder);
+void folderview_check_new_all          ();
 
 void folderview_update_item            (FolderItem     *item,
                                         gboolean        update_summary);
index cf34448..75f182d 100644 (file)
@@ -470,7 +470,8 @@ static GtkItemFactoryEntry mainwin_entries[] =
        {N_("/_File"),                          NULL, NULL, 0, "<Branch>"},
        {N_("/_File/_Add mailbox..."),          NULL, add_mailbox_cb, 0, NULL},
        {N_("/_File/_Add mbox mailbox..."),     NULL, add_mbox_cb, 0, NULL},
-       {N_("/_File/_Rescan folder tree"),      NULL, update_folderview_cb, 0, NULL},
+       {N_("/_File/_Check for new mails in all folders"),
+                                               NULL, update_folderview_cb, 0, NULL},
        {N_("/_File/_Folder"),                  NULL, NULL, 0, "<Branch>"},
        {N_("/_File/_Folder/Create _new folder..."),
                                                NULL, new_folder_cb, 0, NULL},
@@ -2557,7 +2558,7 @@ static void update_folderview_cb(MainWindow *mainwin, guint action,
                                 GtkWidget *widget)
 {
        summary_show(mainwin->summaryview, NULL);
-       folderview_rescan_all();
+       folderview_check_new_all();
 }
 
 static void new_folder_cb(MainWindow *mainwin, guint action,