From: Ryan Lortie Date: Mon, 16 Feb 2009 09:52:24 +0000 (+0000) Subject: remove the dummy-object hack since gio now supports NULL source objects X-Git-Tag: 0.5.7~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cce4d83a50725fa17f8e95b0382c097d956e5c44;p=thirdparty%2Fvala.git remove the dummy-object hack since gio now supports NULL source objects 2009-02-16 Ryan Lortie * gobject/valagasyncmodule.vala: remove the dummy-object hack since gio now supports NULL source objects for GSimpleAsyncResult svn path=/trunk/; revision=2444 --- diff --git a/ChangeLog b/ChangeLog index 89f2ddc2d..51b372363 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-16 Ryan Lortie + + * gobject/valagasyncmodule.vala: remove the dummy-object hack since + gio now supports NULL source objects for GSimpleAsyncResult + 2009-02-14 Ryan Lortie * gobject/valagasyncmodule.vala: diff --git a/gobject/valagasyncmodule.vala b/gobject/valagasyncmodule.vala index 6864da429..85e98842c 100644 --- a/gobject/valagasyncmodule.vala +++ b/gobject/valagasyncmodule.vala @@ -127,11 +127,7 @@ internal class Vala.GAsyncModule : GSignalModule { cl != null && cl.is_subtype_of (gobject_type)) { create_result.add_argument (new CCodeIdentifier ("self")); } else { - var object_creation = new CCodeFunctionCall (new CCodeIdentifier ("g_object_newv")); - object_creation.add_argument (new CCodeConstant ("G_TYPE_OBJECT")); - object_creation.add_argument (new CCodeConstant ("0")); - object_creation.add_argument (new CCodeConstant ("NULL")); - create_result.add_argument (object_creation); + create_result.add_argument (new CCodeConstant ("NULL")); } create_result.add_argument (new CCodeIdentifier ("callback"));