summaryrefslogtreecommitdiffstats
path: root/src/dbus-common.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 15:49:52 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 15:49:52 +0300
commita5883ecb1aa94b09bcf0e7ce4184d262027c5939 (patch)
tree80ce381543b85d61ea54f930a25d08ebabc1291c /src/dbus-common.c
parentfffc600099fdd44e485fa4925a599d790424f881 (diff)
Use g_dbus_send_message instead of dbus_connection_send
Diffstat (limited to 'src/dbus-common.c')
-rw-r--r--src/dbus-common.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/dbus-common.c b/src/dbus-common.c
index 60662398..de42769e 100644
--- a/src/dbus-common.c
+++ b/src/dbus-common.c
@@ -314,7 +314,6 @@ dbus_bool_t emit_property_changed(DBusConnection *conn,
{
DBusMessage *signal;
DBusMessageIter iter;
- gboolean ret;
signal = dbus_message_new_signal(path, interface, "PropertyChanged");
@@ -330,11 +329,7 @@ dbus_bool_t emit_property_changed(DBusConnection *conn,
append_variant(&iter, type, value);
- ret = dbus_connection_send(conn, signal, NULL);
-
- dbus_message_unref(signal);
-
- return ret;
+ return g_dbus_send_message(conn, signal);
}
dbus_bool_t emit_array_property_changed(DBusConnection *conn,
@@ -345,7 +340,6 @@ dbus_bool_t emit_array_property_changed(DBusConnection *conn,
{
DBusMessage *signal;
DBusMessageIter iter;
- gboolean ret;
signal = dbus_message_new_signal(path, interface, "PropertyChanged");
@@ -361,9 +355,5 @@ dbus_bool_t emit_array_property_changed(DBusConnection *conn,
append_array_variant(&iter, type, value);
- ret = dbus_connection_send(conn, signal, NULL);
-
- dbus_message_unref(signal);
-
- return ret;
+ return g_dbus_send_message(conn, signal);
}