- update for latest tinymail. We don't need to implement TnyMsgSummaryIface
* modest-tny-account-store.c:
- provide the account name to through the AccountStoreIface*. Now this name will be shown
the UI as well
pmo-trunk-r117
TNY_ACCOUNT_STORE_IFACE(self));
/* id */
tny_account_iface_set_id (tny_account, key);
TNY_ACCOUNT_STORE_IFACE(self));
/* id */
tny_account_iface_set_id (tny_account, key);
+ tny_account_iface_set_name (tny_account, key);
+
/* proto */
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_PROTO, NULL);
/* proto */
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_PROTO, NULL);
/* hostname */
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_HOSTNAME,
/* hostname */
val = modest_account_mgr_get_server_account_string (priv->modest_acc_mgr, key,
MODEST_ACCOUNT_HOSTNAME,
static void modest_tny_folder_tree_view_init (ModestTnyFolderTreeView *obj);
static void modest_tny_folder_tree_view_finalize (GObject *obj);
static void modest_tny_folder_tree_view_init (ModestTnyFolderTreeView *obj);
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_iface_init (gpointer iface, gpointer data);
static void modest_tny_folder_tree_view_set_account_store (TnySummaryWindowIface *self,
TnyAccountStoreIface *account_store);
static gboolean update_model (ModestTnyFolderTreeView *self,TnyAccountStoreIface *iface);
static void modest_tny_folder_tree_view_set_account_store (TnySummaryWindowIface *self,
TnyAccountStoreIface *account_store);
static gboolean update_model (ModestTnyFolderTreeView *self,TnyAccountStoreIface *iface);
1, /* n_preallocs */
(GInstanceInitFunc) modest_tny_folder_tree_view_init,
};
1, /* n_preallocs */
(GInstanceInitFunc) modest_tny_folder_tree_view_init,
};
-
- static const GInterfaceInfo iface_info = {
- (GInterfaceInitFunc) modest_tny_folder_tree_view_iface_init,
- NULL, /* finalize */
- NULL /* data */
- };
-
my_type = g_type_register_static (GTK_TYPE_TREE_VIEW,
"ModestTnyFolderTreeView",
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,
- &iface_info);
-
-modest_tny_folder_tree_view_iface_init (gpointer iface, gpointer data)
-{
- TnySummaryWindowIfaceClass *klass;
-
- g_return_if_fail (iface);
-
- klass = (TnySummaryWindowIfaceClass*) iface;
-
- klass->set_account_store_func =
- modest_tny_folder_tree_view_set_account_store;
-}
-
-
-
-
-static void
modest_tny_folder_tree_view_finalize (GObject *obj)
{
ModestTnyFolderTreeViewPrivate *priv;
modest_tny_folder_tree_view_finalize (GObject *obj)
{
ModestTnyFolderTreeViewPrivate *priv;