summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-test.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-20 14:43:59 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-20 14:43:59 +0000
commitf2fdd9fee9109cb0fa7f37a26acd0b1eaf2f40f2 (patch)
tree1140b225e33ef166d7a256e7ad0efd3195161f57 /hcid/dbus-test.c
parent72c746b089906cafd0c10880aca3fbe78198054b (diff)
Get rid of g_timeout_remove and g_io_remove_watch in favor for g_source_remove
Diffstat (limited to 'hcid/dbus-test.c')
-rw-r--r--hcid/dbus-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hcid/dbus-test.c b/hcid/dbus-test.c
index 1085d5c8..78766a49 100644
--- a/hcid/dbus-test.c
+++ b/hcid/dbus-test.c
@@ -156,7 +156,7 @@ static void audit_requestor_exited(const char *name, struct audit *audit)
g_io_channel_close(audit->io);
}
if (audit->timeout)
- g_timeout_remove(audit->timeout);
+ g_source_remove(audit->timeout);
audit_free(audit);
}
@@ -282,7 +282,7 @@ static gboolean l2raw_data_callback(GIOChannel *io, GIOCondition cond, struct au
return TRUE;
if (audit->timeout) {
- g_timeout_remove(audit->timeout);
+ g_source_remove(audit->timeout);
audit->timeout = 0;
}
@@ -311,7 +311,7 @@ static gboolean l2raw_data_callback(GIOChannel *io, GIOCondition cond, struct au
return TRUE;
if (audit->timeout) {
- g_timeout_remove(audit->timeout);
+ g_source_remove(audit->timeout);
audit->timeout = 0;
}
@@ -325,7 +325,7 @@ static gboolean l2raw_data_callback(GIOChannel *io, GIOCondition cond, struct au
failed:
if (audit->timeout) {
- g_timeout_remove(audit->timeout);
+ g_source_remove(audit->timeout);
audit->timeout = 0;
}
@@ -546,7 +546,7 @@ static DBusHandlerResult cancel_audit_remote_device(DBusConnection *conn,
g_io_channel_close(audit->io);
}
if (audit->timeout)
- g_timeout_remove(audit->timeout);
+ g_source_remove(audit->timeout);
audits = g_slist_remove(audits, audit);
name_listener_remove(audit->conn, audit->requestor,