priv->modest_conf = NULL;
}
-GObject *
+
+ModestAccountMgr *
modest_account_mgr_new (ModestConf * conf)
{
GObject *obj;
g_signal_connect (G_OBJECT (conf), "key_changed",
G_CALLBACK (on_key_change),
obj);
- return obj;
+
+ return MODEST_ACCOUNT_MGR (obj);
}
*
* Returns: a new ModestAccountMgr, or NULL in case of error
*/
-GObject* modest_account_mgr_new (ModestConf *modest_conf);
+ModestAccountMgr* modest_account_mgr_new (ModestConf *modest_conf);
}
}
-GObject*
+ModestConf*
modest_conf_new (void)
{
ModestConf *conf = MODEST_CONF(g_object_new(MODEST_TYPE_CONF, NULL));
return NULL;
}
- return G_OBJECT(conf);
+ return conf;
}
* Returns: a new ModestConf instance, or NULL in case
* of any error
*/
-GObject* modest_conf_new (void);
+ModestConf* modest_conf_new (void);
/**