let _new return ModestTnyTransportActions, not GObject
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 17 Jul 2006 12:20:25 +0000 (12:20 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 17 Jul 2006 12:20:25 +0000 (12:20 +0000)
pmo-trunk-r387

src/modest-tny-transport-actions.c
src/modest-tny-transport-actions.h

index e55ac97..d12f2d7 100644 (file)
@@ -138,10 +138,11 @@ modest_tny_transport_actions_finalize (GObject *obj)
 /*     free/unref instance resources here */
 }
 
-GObject*
+ModestTnyTransportActions *
 modest_tny_transport_actions_new (void)
 {
-       return G_OBJECT(g_object_new(MODEST_TYPE_TNY_TRANSPORT_ACTIONS, NULL));
+       return MODEST_TNY_TRANSPORT_ACTIONS(g_object_new(MODEST_TYPE_TNY_TRANSPORT_ACTIONS,
+                                                        NULL));
 }
 
 static gboolean
index 47fef65..2d9d496 100644 (file)
@@ -66,7 +66,8 @@ GType        modest_tny_transport_actions_get_type    (void) G_GNUC_CONST;
 /* typical parameter-less _new function */
 /* if this is a kind of GtkWidget, it should probably return at GtkWidget*, */
 /*    otherwise probably a GObject*. */
-GObject*    modest_tny_transport_actions_new         (void);
+
+ModestTnyTransportActions* modest_tny_transport_actions_new         (void);
 
 
 /**