fact = modest_tny_platform_factory_get_instance ();
/* Check modest conf */
- modest_conf = modest_tny_platform_factory_get_modest_conf_instance (fact);
+ modest_conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(fact));
if (!modest_conf) {
g_printerr ("modest: failed to initialize config system, exiting\n");
retval = MODEST_ERR_CONF;
int retval;
fact = modest_tny_platform_factory_get_instance ();
- acc_mgr = modest_tny_platform_factory_get_modest_account_mgr_instance (fact);
+ acc_mgr = modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(fact));
acc_store = tny_platform_factory_new_account_store (fact);
accounts = TNY_LIST(tny_simple_list_new ());
#include "modest-tny-platform-factory.h"
#include "modest-account-view-window.h"
#include "modest-main-window.h"
+#include <modest-widget-memory.h>
#include <tny-error.h>
#include <tny-simple-list.h>
priv->account_store = account_store;
- 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));
if (!account_mgr) {
g_printerr ("modest: could not create ModestAccountMgr instance\n");
g_object_unref (obj);
if (!registered) {
GdkPixbuf *pixbuf;
GtkIconFactory *factory;
- gchar *filename;
gint i;
static GtkStockItem items[] = {
TnyHeader *header;
TnyFolder *folder;
gchar *from, *key;
- ModestFolderView *folder_view;
GetMsgAsyncHelper *helper;
ReplyForwardHelper *rf_helper;
/* Get ModestConf */
plat_factory = modest_tny_platform_factory_get_instance ();
- conf = modest_tny_platform_factory_get_modest_conf_instance (plat_factory);
+ conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(plat_factory));
/* Get reply or forward type */
key = g_strdup_printf ("%s/%s", MODEST_CONF_NAMESPACE,
TnyFolder *folder;
GetMsgAsyncHelper *helper;
TnyList *list;
- TnyIterator *iter;
if (!header)
return;
factory = modest_tny_platform_factory_get_instance ();
header_view = modest_widget_factory_get_header_view (widget_factory);
- conf = modest_tny_platform_factory_get_modest_conf_instance (factory);
+ conf = modest_tny_platform_factory_get_conf_instance
+ (MODEST_TNY_PLATFORM_FACTORY(factory));
g_object_unref (G_OBJECT (widget_factory));
if (!selected) { /* the folder was unselected; save it's settings */
g_return_val_if_fail (self, NULL);
priv = MODEST_WIDGET_FACTORY_GET_PRIVATE(self);
- account_mgr =
- modest_tny_platform_factory_get_modest_account_mgr_instance (priv->fact);
-
+ account_mgr = modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->fact));
return modest_account_view_new (account_mgr);
}
priv = MODEST_WIDGET_FACTORY_GET_PRIVATE(self);
- account_mgr =
- modest_tny_platform_factory_get_modest_account_mgr_instance (priv->fact);
+ account_mgr =
+ modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->fact));
cursor = accounts = modest_account_mgr_account_names (account_mgr, NULL);
while (cursor) {
ModestAccountData *data;
g_return_val_if_fail (conf, FALSE);
g_return_val_if_fail (widget, FALSE);
g_return_val_if_fail (name, FALSE);
-
+
if (GTK_IS_WINDOW(widget))
return save_settings_window (conf, GTK_WINDOW(widget), name);
else if (GTK_IS_PANED(widget))