Changeset 387

Show
Ignore:
Timestamp:
05/26/06 11:41:31
Author:
pvanhoof
Message:

account-store-view

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymailui/Makefile.am

    r379 r387  
    1111        tny-msg-window-iface.h          \ 
    1212        tny-platform-factory-iface.h    \ 
    13         tny-msg-header-view-iface.h 
     13        tny-msg-header-view-iface.h     \ 
     14        tny-account-store-view-iface.h 
    1415 
    1516libtinymailui_1_0_la_SOURCES =          \ 
     
    2021        tny-msg-window-iface.c          \ 
    2122        tny-platform-factory-iface.c    \ 
    22         tny-msg-header-view-iface.c 
     23        tny-msg-header-view-iface.c     \ 
     24        tny-account-store-view-iface.c 
    2325 
    2426libtinymailui_1_0_la_LIBADD =           \ 
  • trunk/libtinymailui/tny-summary-window-iface.c

    r379 r387  
    2222#include <tny-summary-window-iface.h> 
    2323 
    24 /** 
    25  * tny_summary_window_iface_set_account_store: 
    26  * @self: A #TnySummaryWindowIface instance 
    27  * @account_store: A #TnyAccountStoreIface instace 
    28  * 
    29  * Set the account store (summary window is an observer of it) 
    30  *  
    31  **/ 
    32 void 
    33 tny_summary_window_iface_set_account_store (TnySummaryWindowIface *self, TnyAccountStoreIface *account_store) 
    34 { 
    35         TNY_SUMMARY_WINDOW_IFACE_GET_CLASS (self)->set_account_store_func (self, account_store); 
    36         return; 
    37 } 
    3824 
    3925static void 
  • trunk/libtinymailui/tny-summary-window-iface.h

    r139 r387  
    4141{ 
    4242        GTypeInterface parent; 
    43  
    44         void (*set_account_store_func) (TnySummaryWindowIface *self, TnyAccountStoreIface *account_store); 
    4543}; 
    4644 
    47 GType         tny_summary_window_iface_get_type           (void); 
    48  
    49 void          tny_summary_window_iface_set_account_store  (TnySummaryWindowIface *self, TnyAccountStoreIface *account_store); 
     45GType tny_summary_window_iface_get_type (void); 
    5046 
    5147 
  • trunk/tinymail/tny-main.c

    r380 r387  
    2121#include <gtk/gtk.h> 
    2222 
    23 #include <tny-summary-window.h> 
    24 #include <tny-summary-window-iface.h> 
     23#include <tny-account-store-view-iface.h> 
    2524#include <tny-platform-factory-iface.h> 
    2625#include <tny-platform-factory.h> 
     
    8079        gtk_widget_show (GTK_WIDGET (window)); 
    8180 
    82         tny_summary_window_iface_set_account_store ( 
    83                 TNY_SUMMARY_WINDOW_IFACE (window), 
     81        tny_account_store_view_iface_set_account_store ( 
     82                TNY_ACCOUNT_STORE_VIEW_IFACE (window), 
    8483                tny_platform_factory_iface_new_account_store (platfact)); 
    8584         
  • trunk/tinymail/tny-summary-window.c

    r380 r387  
    5252#include <tny-summary-window.h> 
    5353#include <tny-summary-window-iface.h> 
     54#include <tny-account-store-view-iface.h> 
    5455 
    5556static GObjectClass *parent_class = NULL; 
     
    142143 
    143144static void 
    144 tny_summary_window_set_account_store (TnySummaryWindowIface *self, TnyAccountStoreIface *account_store) 
     145tny_summary_window_set_account_store (TnyAccountStoreViewIface *self, TnyAccountStoreIface *account_store) 
    145146{ 
    146147        TnySummaryWindowPriv *priv = TNY_SUMMARY_WINDOW_GET_PRIVATE (self); 
     
    633634tny_summary_window_iface_init (gpointer g_iface, gpointer iface_data) 
    634635{ 
    635         TnySummaryWindowIfaceClass *klass = (TnySummaryWindowIfaceClass *)g_iface; 
     636        return; 
     637
     638 
     639static void 
     640tny_account_store_view_iface_init (gpointer g_iface, gpointer iface_data) 
     641
     642        TnyAccountStoreViewIfaceClass *klass = (TnyAccountStoreViewIfaceClass *)g_iface; 
    636643 
    637644        klass->set_account_store_func = tny_summary_window_set_account_store; 
     
    682689                }; 
    683690 
     691                static const GInterfaceInfo tny_account_store_view_iface_info =  
     692                { 
     693                  (GInterfaceInitFunc) tny_account_store_view_iface_init, /* interface_init */ 
     694                  NULL,         /* interface_finalize */ 
     695                  NULL          /* interface_data */ 
     696                }; 
     697 
    684698                type = g_type_register_static (GTK_TYPE_WINDOW, 
    685699                        "TnySummaryWindow", 
     
    689703                        &tny_summary_window_iface_info); 
    690704 
     705                g_type_add_interface_static (type, TNY_TYPE_ACCOUNT_STORE_VIEW_IFACE,  
     706                        &tny_account_store_view_iface_info); 
     707 
    691708        } 
    692709