]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
remove the dummy-object hack since gio now supports NULL source objects
authorRyan Lortie <desrt@desrt.ca>
Mon, 16 Feb 2009 09:52:24 +0000 (09:52 +0000)
committerRyan Lortie <ryanl@src.gnome.org>
Mon, 16 Feb 2009 09:52:24 +0000 (09:52 +0000)
2009-02-16  Ryan Lortie  <desrt@desrt.ca>

        * gobject/valagasyncmodule.vala: remove the dummy-object hack since
        gio now supports NULL source objects for GSimpleAsyncResult

svn path=/trunk/; revision=2444

ChangeLog
gobject/valagasyncmodule.vala

index 89f2ddc2d48194fc898de6a7b5b70f27811cc765..51b3723632282f6024bcf8df5f5d7bcc5dde64ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-16  Ryan Lortie  <desrt@desrt.ca>
+
+       * gobject/valagasyncmodule.vala: remove the dummy-object hack since
+       gio now supports NULL source objects for GSimpleAsyncResult
+
 2009-02-14  Ryan Lortie  <desrt@desrt.ca>
 
        * gobject/valagasyncmodule.vala:
index 6864da429b9133a0ea65c8d1ff5e0173615f9efd..85e98842c02f98fc759bcfc592fdadf444b1edbb 100644 (file)
@@ -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"));