Changeset 387
- Timestamp:
- 05/26/06 11:41:31
- Files:
-
- trunk/libtinymailui/Makefile.am (modified) (2 diffs)
- trunk/libtinymailui/tny-account-store-view-iface.c (added)
- trunk/libtinymailui/tny-account-store-view-iface.h (added)
- trunk/libtinymailui/tny-summary-window-iface.c (modified) (1 diff)
- trunk/libtinymailui/tny-summary-window-iface.h (modified) (1 diff)
- trunk/tinymail/tny-main.c (modified) (2 diffs)
- trunk/tinymail/tny-summary-window.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymailui/Makefile.am
r379 r387 11 11 tny-msg-window-iface.h \ 12 12 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 14 15 15 16 libtinymailui_1_0_la_SOURCES = \ … … 20 21 tny-msg-window-iface.c \ 21 22 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 23 25 24 26 libtinymailui_1_0_la_LIBADD = \ trunk/libtinymailui/tny-summary-window-iface.c
r379 r387 22 22 #include <tny-summary-window-iface.h> 23 23 24 /**25 * tny_summary_window_iface_set_account_store:26 * @self: A #TnySummaryWindowIface instance27 * @account_store: A #TnyAccountStoreIface instace28 *29 * Set the account store (summary window is an observer of it)30 *31 **/32 void33 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 }38 24 39 25 static void trunk/libtinymailui/tny-summary-window-iface.h
r139 r387 41 41 { 42 42 GTypeInterface parent; 43 44 void (*set_account_store_func) (TnySummaryWindowIface *self, TnyAccountStoreIface *account_store);45 43 }; 46 44 47 GType tny_summary_window_iface_get_type (void); 48 49 void tny_summary_window_iface_set_account_store (TnySummaryWindowIface *self, TnyAccountStoreIface *account_store); 45 GType tny_summary_window_iface_get_type (void); 50 46 51 47 trunk/tinymail/tny-main.c
r380 r387 21 21 #include <gtk/gtk.h> 22 22 23 #include <tny-summary-window.h> 24 #include <tny-summary-window-iface.h> 23 #include <tny-account-store-view-iface.h> 25 24 #include <tny-platform-factory-iface.h> 26 25 #include <tny-platform-factory.h> … … 80 79 gtk_widget_show (GTK_WIDGET (window)); 81 80 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), 84 83 tny_platform_factory_iface_new_account_store (platfact)); 85 84 trunk/tinymail/tny-summary-window.c
r380 r387 52 52 #include <tny-summary-window.h> 53 53 #include <tny-summary-window-iface.h> 54 #include <tny-account-store-view-iface.h> 54 55 55 56 static GObjectClass *parent_class = NULL; … … 142 143 143 144 static void 144 tny_summary_window_set_account_store (Tny SummaryWindowIface *self, TnyAccountStoreIface *account_store)145 tny_summary_window_set_account_store (TnyAccountStoreViewIface *self, TnyAccountStoreIface *account_store) 145 146 { 146 147 TnySummaryWindowPriv *priv = TNY_SUMMARY_WINDOW_GET_PRIVATE (self); … … 633 634 tny_summary_window_iface_init (gpointer g_iface, gpointer iface_data) 634 635 { 635 TnySummaryWindowIfaceClass *klass = (TnySummaryWindowIfaceClass *)g_iface; 636 return; 637 } 638 639 static void 640 tny_account_store_view_iface_init (gpointer g_iface, gpointer iface_data) 641 { 642 TnyAccountStoreViewIfaceClass *klass = (TnyAccountStoreViewIfaceClass *)g_iface; 636 643 637 644 klass->set_account_store_func = tny_summary_window_set_account_store; … … 682 689 }; 683 690 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 684 698 type = g_type_register_static (GTK_TYPE_WINDOW, 685 699 "TnySummaryWindow", … … 689 703 &tny_summary_window_iface_info); 690 704 705 g_type_add_interface_static (type, TNY_TYPE_ACCOUNT_STORE_VIEW_IFACE, 706 &tny_account_store_view_iface_info); 707 691 708 } 692 709
