priv = MODEST_ACCOUNT_VIEW_WINDOW_GET_PRIVATE(self);
fact = modest_tny_platform_factory_get_instance ();
- account_mgr = modest_tny_platform_factory_get_modest_account_mgr_instance (fact);
+ account_mgr = modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(fact));
account_name = modest_account_view_get_selected_account (priv->account_view);
priv = MODEST_ACCOUNT_VIEW_WINDOW_GET_PRIVATE(self);
fact = modest_tny_platform_factory_get_instance ();
- account_mgr = modest_tny_platform_factory_get_modest_account_mgr_instance (fact);
+ account_mgr = modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(fact));
assistant = modest_account_assistant_new (account_mgr,
priv->widget_factory);
ModestConf *conf;
priv = MODEST_EDIT_MSG_WINDOW_GET_PRIVATE(self);
- conf = modest_tny_platform_factory_get_modest_conf_instance (priv->fact);
+ conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->fact));
modest_widget_memory_save (conf, G_OBJECT(self), "modest-edit-msg-window");
}
ModestConf *conf;
priv = MODEST_EDIT_MSG_WINDOW_GET_PRIVATE(self);
- conf = modest_tny_platform_factory_get_modest_conf_instance (priv->fact);
-
+ conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->fact));
modest_widget_memory_restore (conf, G_OBJECT(self), "modest-edit-msg-window");
}
/* don't free these (except from) */
data = g_slice_new0 (MsgData);
- data->from = g_strdup_printf ("%s <%s>", account_data->full_name, account_data->email) ;
+ data->from = g_strdup_printf ("%s <%s>", account_data->fullname, account_data->email) ;
data->to = (gchar*) gtk_entry_get_text (GTK_ENTRY(priv->to_field));
data->cc = (gchar*) gtk_entry_get_text (GTK_ENTRY(priv->cc_field));
data->bcc = (gchar*) gtk_entry_get_text (GTK_ENTRY(priv->bcc_field));
GtkUIManager *ui_manager;
ModestWidgetFactory *widget_factory;
TnyPlatformFactory *factory;
- TnyAccountStore *account_store;
+ ModestTnyAccountStore *account_store;
GtkWidget *toolbar;
GtkWidget *menubar;
ModestMainWindowPrivate *priv;
priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self);
- conf = modest_tny_platform_factory_get_modest_conf_instance (priv->factory);
+ conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->factory));
modest_widget_memory_restore (conf, G_OBJECT(priv->folder_paned),
"modest-folder-paned");
ModestConf *conf;
priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self);
- conf = modest_tny_platform_factory_get_modest_conf_instance (priv->factory);
+ conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->factory));
modest_widget_memory_save (conf,G_OBJECT(self), "modest-main-window");
modest_widget_memory_save (conf, G_OBJECT(priv->folder_paned),
gtk_window_set_icon (GTK_WINDOW(obj),
modest_icon_factory_get_icon (MODEST_APP_ICON));
gtk_widget_show_all (main_vbox);
-
+
g_signal_connect (G_OBJECT(obj), "delete-event",
G_CALLBACK(on_delete_event), obj);
if (!priv->account_store) {
if (!priv->account_mgr)
- modest_tny_platform_factory_get_modest_account_mgr_instance (self);
+ modest_tny_platform_factory_get_account_mgr_instance (self);
priv->account_store = modest_tny_account_store_new (priv->account_mgr);
}
#elif MODEST_PLATFORM_ID==2
return TNY_DEVICE (tny_maemo_device_new ());
#else
- return NULL;
+ g_return_val_if_reached (NULL);
#endif /* MODEST_PLATFORM */
}
ModestAccountMgr *
-modest_tny_platform_factory_get_modest_account_mgr_instance (TnyPlatformFactory *fact)
+modest_tny_platform_factory_get_account_mgr_instance (ModestTnyPlatformFactory *fact)
{
ModestTnyPlatformFactoryPrivate *priv;
if (!priv->account_mgr) {
if (!priv->conf)
- modest_tny_platform_factory_get_modest_conf_instance (fact);
-
+ modest_tny_platform_factory_get_conf_instance (fact);
priv->account_mgr = modest_account_mgr_new (priv->conf);
}
}
ModestConf *
-modest_tny_platform_factory_get_modest_conf_instance (TnyPlatformFactory *fact)
+modest_tny_platform_factory_get_conf_instance (ModestTnyPlatformFactory *fact)
{
ModestTnyPlatformFactoryPrivate *priv;
}
ModestMailOperationQueue*
-modest_tny_platform_factory_get_modest_mail_operation_queue_instance (TnyPlatformFactory *fact)
+modest_tny_platform_factory_get_mail_operation_queue_instance (ModestTnyPlatformFactory *fact)
{
ModestTnyPlatformFactoryPrivate *priv;
TnyPlatformFactory* modest_tny_platform_factory_get_instance (void);
/**
- * modest_tny_platform_factory_get_modest_account_mgr_instance:
+ * modest_tny_platform_factory_get_account_mgr_instance:
* @fact: the #TnyPlatformFactory that holds the #ModestAccountMgr instance
*
* Gets a new instance of a #ModestAccountMgr if it is the first call
*
* Returns: an instance of a #ModestAccountMgr
**/
-ModestAccountMgr* modest_tny_platform_factory_get_modest_account_mgr_instance (TnyPlatformFactory *fact);
+ModestAccountMgr* modest_tny_platform_factory_get_account_mgr_instance (ModestTnyPlatformFactory *fact);
/**
- * modest_tny_platform_factory_get_modest_conf_instance:
+ * modest_tny_platform_factory_get_conf_instance:
* @fact: the #TnyPlatformFactory that holds the #ModestConf instance
*
* Gets a new instance of a #ModestConf if it is the first call to the
*
* Returns: an instance of a #ModestConf
**/
-ModestConf* modest_tny_platform_factory_get_modest_conf_instance (TnyPlatformFactory *fact);
+ModestConf* modest_tny_platform_factory_get_conf_instance (ModestTnyPlatformFactory *fact);
/**
- * modest_tny_platform_factory_get_modest_mail_operation_queue_instance:
+ * modest_tny_platform_factory_get_mail_operation_queue_instance:
* @fact: the #TnyPlatformFactory that holds the #ModestMailOperationQueue instance
*
* Gets a new instance of a #ModestMailOperationQueue if it is the
*
* Returns: an instance of a #ModestMailOperationQueue
**/
-ModestMailOperationQueue* modest_tny_platform_factory_get_modest_mail_operation_queue_instance (TnyPlatformFactory *fact);
+ModestMailOperationQueue* modest_tny_platform_factory_get_mail_operation_queue_instance (ModestTnyPlatformFactory *fact);
G_END_DECLS