New account-store-view type in tinymail



There's a new interface called account-store-view that basically
replaces the summary-window-iface. The account store view no longer has
to be a 'window' nor a 'summary view'. You can implement it however you
like (like how modest does it).

As I feel responsible for this design mistake, I attached a patch for
modest. It's a trivial change.


-- 
Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be 
http://www.pvanhoof.be - http://www.x-tend.be
Index: src/modest-tny-folder-tree-view.c
===================================================================
--- src/modest-tny-folder-tree-view.c	(revision 112)
+++ src/modest-tny-folder-tree-view.c	(working copy)
@@ -6,7 +6,7 @@
 #include <tny-account-tree-model.h>
 #include <tny-account-store-iface.h>
 #include <tny-account-iface.h>
-#include <tny-summary-window-iface.h>
+#include <tny-account-store-view-iface.h>
 
 #include "modest-tny-folder-tree-view.h"
 /* include other impl specific header files */
@@ -17,7 +17,7 @@
 static void modest_tny_folder_tree_view_finalize    (GObject *obj);
 
 static void modest_tny_folder_tree_view_iface_init   (gpointer iface, gpointer data);
-static void modest_tny_folder_tree_view_set_account_store (TnySummaryWindowIface *self,
+static void modest_tny_folder_tree_view_set_account_store (TnyAccountStoreViewIface *self,
 							   TnyAccountStoreIface *account_store);
 static gboolean update_model (ModestTnyFolderTreeView *self,TnyAccountStoreIface *iface);
 static gboolean update_model_empty (ModestTnyFolderTreeView *self);
@@ -70,7 +70,7 @@
 		my_type = g_type_register_static (GTK_TYPE_TREE_VIEW,
 		                                  "ModestTnyFolderTreeView",
 		                                  &my_info, 0);
-		g_type_add_interface_static (my_type, TNY_TYPE_SUMMARY_WINDOW_IFACE,
+		g_type_add_interface_static (my_type, TNY_TYPE_ACCOUNT_STORE_VIEW_IFACE,
 					     &iface_info);
 		
 	}
@@ -113,11 +113,11 @@
 static void
 modest_tny_folder_tree_view_iface_init (gpointer iface, gpointer data)
 {
-	TnySummaryWindowIfaceClass *klass;
+	TnyAccountStoreViewIfaceClass *klass;
 
 	g_return_if_fail (iface);
 	
-	klass =	(TnySummaryWindowIfaceClass*) iface;
+	klass =	(TnyAccountStoreViewIfaceClass*) iface;
 		
 	klass->set_account_store_func =
 		modest_tny_folder_tree_view_set_account_store;
@@ -144,7 +144,7 @@
 
 
 static void
-modest_tny_folder_tree_view_set_account_store (TnySummaryWindowIface *self,
+modest_tny_folder_tree_view_set_account_store (TnyAccountStoreViewIface *self,
 					       TnyAccountStoreIface *account_store)
 {
 	ModestTnyFolderTreeViewPrivate *priv;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]