diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-09 11:07:39 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-09 11:07:39 +0800 |
commit | 5931b31034fb4d19482e517f6d8e5508fa1da908 (patch) | |
tree | 51e741ef213cd6af06a263b55df3d5c3d45c27bf /camel/camel-vtrash-folder.c | |
parent | c5a91116e208aa02e8412ab778b7c959dc089ddd (diff) | |
download | gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.gz gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.bz2 gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.lz gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.xz gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.tar.zst gsoc2013-evolution-5931b31034fb4d19482e517f6d8e5508fa1da908.zip |
replace the ever-growing list of gbooleans with a single guint32 for
* camel-folder.h (struct _CamelFolder): replace the ever-growing
list of gbooleans with a single guint32 for flags.
* camel-folder.c: Update folder flag setting/checking.
* providers/pop3/camel-pop3-folder.c (camel_pop3_folder_init):
* providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new):
* providers/local/camel-spool-folder.c (spool_init,
camel_spool_folder_new):
* providers/local/camel-maildir-folder.c (camel_maildir_folder_new):
* providers/local/camel-local-folder.c (local_init):
* providers/imap/camel-imap-folder.c (camel_imap_folder_init,
camel_imap_folder_new):
* camel-vtrash-folder.c (camel_vtrash_folder_init):
* camel-vee-folder.c (camel_vee_folder_init):
* camel-digest-folder.c (camel_digest_folder_init): update folder
flag setting.
svn path=/trunk/; revision=13509
Diffstat (limited to 'camel/camel-vtrash-folder.c')
-rw-r--r-- | camel/camel-vtrash-folder.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/camel/camel-vtrash-folder.c b/camel/camel-vtrash-folder.c index 1e7f7b8f67..8b39fe9717 100644 --- a/camel/camel-vtrash-folder.c +++ b/camel/camel-vtrash-folder.c @@ -53,6 +53,14 @@ camel_vtrash_folder_class_init (CamelVTrashFolderClass *klass) folder_class->move_messages_to = vtrash_move_messages_to; } +static void +camel_vtrash_folder_init (CamelVTrashFolder *vtrash) +{ + CamelFolder *folder = CAMEL_FOLDER (vtrash); + + folder->folder_flags |= CAMEL_FOLDER_IS_TRASH; +} + CamelType camel_vtrash_folder_get_type (void) { @@ -65,7 +73,7 @@ camel_vtrash_folder_get_type (void) sizeof (CamelVTrashFolderClass), (CamelObjectClassInitFunc) camel_vtrash_folder_class_init, NULL, - NULL, + (CamelObjectInitFunc) camel_vtrash_folder_init, NULL); } @@ -73,7 +81,7 @@ camel_vtrash_folder_get_type (void) } /** - * camel_vee_folder_new: + * camel_vtrash_folder_new: * @parent_store: the parent CamelVeeStore * @name: the vfolder name * @ex: a CamelException |