|
From: CORE C. L. <cor...@li...> - 2000-11-20 22:59:02
|
Core CVS committal
Author : rbdpngn
Project : core
Module : src
Modified Files:
account.c account.h callbacks.c
Log Message:
Fixed some folder selection bugs. Still one more lurking, I'll have to look at it again later.
===================================================================
RCS file: /cvsroot/corem/core/src/account.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- account.c 2000/11/20 21:02:13 1.5
+++ account.c 2000/11/20 22:59:01 1.6
@@ -234,3 +234,12 @@
return mbox;
}
+
+int account_reset_file(Account *ac)
+{
+ if (!ac || !ac->fp)
+ return FALSE;
+
+ rewind(ac->fp);
+ return TRUE;
+}
===================================================================
RCS file: /cvsroot/corem/core/src/account.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- account.h 2000/11/20 22:32:00 1.4
+++ account.h 2000/11/20 22:59:01 1.5
@@ -23,7 +23,6 @@
char *password; /* Password for POP3 or IMAP */
} Account;
-
/* Allocate the memory for and initialize a new account structure. */
Account *new_account(void);
/* Free an account created with new_account() */
@@ -58,3 +57,6 @@
Account *account_read(gchar * path);
/* Move through the various folders returning them one at a time */
Account *get_next_folder(void);
+
+/* Reset the file pointer for the local mailbox */
+int account_reset(Account *ac);
===================================================================
RCS file: /cvsroot/corem/core/src/callbacks.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- callbacks.c 2000/11/20 22:32:00 1.16
+++ callbacks.c 2000/11/20 22:59:01 1.17
@@ -485,7 +485,8 @@
free);
destroy_message(message);
}
- current_mbox = mbox;
+ current_mbox = mbox;
+ account_reset_file(mbox);
return TRUE;
data = NULL;
@@ -494,6 +495,8 @@
int folder_unselected(GtkWidget * list, GList * node, gint col,
gpointer data)
{
+ gtk_ctree_remove_node(GTK_CTREE(mail_ctree), NULL);
+
return TRUE;
list = NULL;
node = NULL;
|