* modest_ui_new now returns ModestUI* instead of GObject
[modest] / src / hildon / modest-ui.c
index 9999a1d..47599d9 100644 (file)
@@ -177,7 +177,7 @@ on_accounts_reloaded (ModestTnyAccountStore *account_store, gpointer user_data)
 }
 
 
-GObject*
+ModestUI*
 modest_ui_new (ModestConf *modest_conf)
 {
        GObject *obj;
@@ -251,7 +251,7 @@ modest_ui_new (ModestConf *modest_conf)
        g_slist_free(account_names_list);
        g_slist_free(identities_list);
 
-       return obj;
+       return MODEST_UI(obj);
 }