[glib] GDBusConnection: Pass the GObject to g_simple_async_result_new()



commit 133e87ca87cc86e6410bb9e19eacd8ddb11eadfc
Author: David Zeuthen <davidz redhat com>
Date:   Wed Jul 28 12:48:17 2010 -0400

    GDBusConnection: Pass the GObject to g_simple_async_result_new()
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbusconnection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 6b8ac2c..5714e51 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -965,7 +965,7 @@ g_dbus_connection_flush (GDBusConnection     *connection,
 
   g_return_if_fail (G_IS_DBUS_CONNECTION (connection));
 
-  simple = g_simple_async_result_new (NULL,
+  simple = g_simple_async_result_new (G_OBJECT (connection),
                                       callback,
                                       user_data,
                                       g_dbus_connection_flush);
@@ -1185,7 +1185,7 @@ g_dbus_connection_close (GDBusConnection     *connection,
 
   g_return_if_fail (G_IS_DBUS_CONNECTION (connection));
 
-  simple = g_simple_async_result_new (NULL,
+  simple = g_simple_async_result_new (G_OBJECT (connection),
                                       callback,
                                       user_data,
                                       g_dbus_connection_close);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]