Changeset 542

Show
Ignore:
Timestamp:
07/04/06 01:51:43
Author:
pvanhoof
Message:

Added a general purpose TnyList type

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/tny-account.c

    r507 r542  
    226226 
    227227 
    228 void 
     228static void 
    229229tny_account_set_id (TnyAccountIface *self, const gchar *id) 
    230230{ 
     
    243243} 
    244244 
    245 void 
     245static void 
    246246tny_account_set_proto (TnyAccountIface *self, const gchar *proto) 
    247247{ 
  • trunk/libtinymail-camel/tny-msg-folder-list-iterator-priv.h

    r444 r542  
    5656void _tny_msg_folder_list_iterator_set_model (TnyMsgFolderListIterator *self, TnyMsgFolderList *model); 
    5757TnyMsgFolderListIterator* _tny_msg_header_list_iterator_new (TnyMsgFolderList *model); 
    58 void _tny_msg_folder_list_iterator_travel_to_nth (TnyMsgFolderListIterator *self, guint cur, guint nth); 
    5958 
    6059G_END_DECLS 
  • trunk/libtinymail-camel/tny-msg-folder-list-iterator.c

    r444 r542  
    7878} 
    7979 
    80 void  
    81 _tny_msg_folder_list_iterator_travel_to_nth (TnyMsgFolderListIterator *self, guint cur, guint nth) 
    82 { 
    83         if (cur < nth) 
    84                 while ((cur++ < nth) && self->current) 
    85                         self->current = self->current->next; 
    86         else if (cur > nth) 
    87                 while ((cur-- > nth) && self->current) 
    88                         self->current = self->current->prev; 
    89 } 
    9080 
    9181static gpointer  
  • trunk/libtinymail-camel/tny-msg-folder-list-priv.h

    r444 r542  
    2727G_BEGIN_DECLS 
    2828 
    29 #define TNY_TYPE_MSG_FOLDER_LIST            (_tny_msg_folder_list_get_type ()) 
    30 #define TNY_MSG_FOLDER_LIST(obj)            (GTK_CHECK_CAST ((obj), TNY_TYPE_MSG_FOLDER_LIST, TnyMsgFolderList)) 
    31 #define TNY_MSG_FOLDER_LIST_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), TNY_TYPE_MSG_FOLDER_LIST, TnyMsgFolderListClass)) 
    32 #define TNY_IS_MSG_FOLDER_LIST(obj)         (GTK_CHECK_TYPE ((obj), TNY_TYPE_MSG_FOLDER_LIST)) 
    33 #define TNY_IS_MSG_FOLDER_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), TNY_TYPE_MSG_FOLDER_LIST)) 
    34 #define TNY_MSG_FOLDER_LIST_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), TNY_TYPE_MSG_FOLDER_LIST, TnyMsgFolderListClass)) 
     29#define TNY_TYPE_MSG_FOLDER_LIST             (_tny_msg_folder_list_get_type ()) 
     30#define TNY_MSG_FOLDER_LIST(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_MSG_FOLDER_LIST, TnyMsgFolderList)) 
     31#define TNY_MSG_FOLDER_LIST_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_MSG_FOLDER_LIST, TnyMsgFolderListClass)) 
     32#define TNY_IS_MSG_FOLDER_LIST(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_MSG_FOLDER_LIST)) 
     33#define TNY_IS_MSG_FOLDER_LIST_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_MSG_FOLDER_LIST)) 
     34#define TNY_MSG_FOLDER_LIST_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TNY_TYPE_MSG_FOLDER_LIST, TnyMsgFolderListClass)) 
     35 
    3536 
    3637typedef struct _TnyMsgFolderList TnyMsgFolderList; 
  • trunk/libtinymail/Makefile.am

    r424 r542  
    1717        tny-account-store-iface.h       \ 
    1818        tny-stream-iface.h              \ 
    19         tny-fs-stream.h 
     19        tny-fs-stream.h                 \ 
     20        tny-list.h 
    2021 
    2122libtinymail_1_0_la_SOURCES =            \ 
     
    3334        tny-account-store-iface.c       \ 
    3435        tny-stream-iface.c              \ 
    35         tny-fs-stream.c 
     36        tny-fs-stream.c                 \ 
     37        tny-list-priv.h                 \ 
     38        tny-list.c                      \ 
     39        tny-list-iterator-priv.h        \ 
     40        tny-list-iterator.c 
    3641 
    3742libtinymail_1_0_la_LIBADD = $(LIBTINYMAIL_LIBS) 
  • trunk/libtinymail/tny-account-store-iface.h

    r487 r542  
    6565 
    6666        /* Methods */ 
     67 
     68/* 
     69void  
     70tny_account_store_iface_get_accounts (TnyAccountStoreIface *self, TnyListIface *list, TnyGetAccountsRequestType type) 
     71 
     72enum  
     73{ 
     74        ONLY_TRANSPORT_ACCOUNTS, 
     75        ONLY_STORE_ACCOUNTS, 
     76        BOTH 
     77} TnyGetACcountsRequestType; 
     78*/ 
     79 
    6780        const GList*  (*get_store_accounts_func)                (TnyAccountStoreIface *self); 
    6881        void          (*add_store_account_func)                 (TnyAccountStoreIface *self, TnyStoreAccountIface *account); 
  • trunk/libtinymail/tny-shared.h

    r488 r542  
    5757typedef enum _TnyAlertType TnyAlertType; 
    5858typedef enum _TnyMsgFolderType TnyMsgFolderType; 
     59typedef struct _TnyList TnyList; 
     60typedef struct _TnyListClass TnyListClass; 
    5961 
    6062#ifndef G_LIKELY 
  • trunk/libtinymailui/tny-msg-view-iface.c

    r520 r542  
    4141        return; 
    4242} 
     43 
     44 
    4345 
    4446 
  • trunk/tinymail/tny-main.c

    r443 r542  
    6666        gdk_threads_init (); 
    6767 
     68// demo 
     69        /* g_object_unref (NULL); */ 
     70 
    6871#ifdef GNOME 
    6972        gnome_vfs_init ();