let _new return ModestConf*, ModestAccountMgr* instead of GObject
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 17 Jul 2006 12:13:28 +0000 (12:13 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 17 Jul 2006 12:13:28 +0000 (12:13 +0000)
pmo-trunk-r382

src/modest-account-mgr.c
src/modest-account-mgr.h
src/modest-conf.c
src/modest-conf.h

index 76d042b..60209b1 100644 (file)
@@ -220,7 +220,8 @@ modest_account_mgr_finalize (GObject * obj)
        priv->modest_conf = NULL;
 }
 
-GObject *
+
+ModestAccountMgr *
 modest_account_mgr_new (ModestConf * conf)
 {
        GObject *obj;
@@ -236,7 +237,8 @@ modest_account_mgr_new (ModestConf * conf)
        g_signal_connect (G_OBJECT (conf), "key_changed",
                          G_CALLBACK (on_key_change),
                          obj);
-       return obj;
+       
+       return MODEST_ACCOUNT_MGR (obj);
 }
 
 
index e6cba5b..7298fac 100644 (file)
@@ -79,7 +79,7 @@ GType           modest_account_mgr_get_type       (void) G_GNUC_CONST;
  *  
  * 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);
 
 
 
index 5e7f894..d9c2c68 100644 (file)
@@ -152,7 +152,7 @@ modest_conf_finalize (GObject *obj)
        }       
 }
 
-GObject*
+ModestConf*
 modest_conf_new (void)
 {
        ModestConf *conf = MODEST_CONF(g_object_new(MODEST_TYPE_CONF, NULL));
@@ -168,7 +168,7 @@ modest_conf_new (void)
                return NULL;
        }
        
-       return G_OBJECT(conf);
+       return conf;
 }
 
 
index b79db31..7dd2514 100644 (file)
@@ -79,7 +79,7 @@ GType        modest_conf_get_type    (void) G_GNUC_CONST;
  * Returns: a new ModestConf instance, or NULL in case
  * of any error
  */
-GObject*     modest_conf_new         (void);
+ModestConf*     modest_conf_new         (void);
 
 
 /**