summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2011-04-21 12:56:27 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2011-05-04 15:28:47 +0100
commitcfc09eb5b54fa10485d52db90924cc37a0a7d757 (patch)
tree80c3304e59ab7267bc40e6b4573318ab4693a33f
parent94de2830461dd828eff5df31e8bf4e60f78ccf2d (diff)
downloadtelepathy-mission-control-cfc09eb5b54fa10485d52db90924cc37a0a7d757.tar.gz
Simplify filter-add error checking
-rw-r--r--src/client-registry.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/client-registry.c b/src/client-registry.c
index 796f7ea0..6651b76e 100644
--- a/src/client-registry.c
+++ b/src/client-registry.c
@@ -383,16 +383,8 @@ watch_clients (McdClientRegistry *self)
self,
NULL);
- if (arg0_filtered)
- {
- arg0_filtered = add_match (dconn, CLIENT_MATCH_RULE, "client names");
-
- if (!arg0_filtered)
- arg0_filtered = add_match (dconn, NAME_OWNER_RULE, "all dbus names");
- }
-
- if (!arg0_filtered)
- g_warning ("Could not add match & filter for telepathy client names");
+ if (arg0_filtered && !add_match (dconn, CLIENT_MATCH_RULE, "client names"))
+ add_match (dconn, NAME_OWNER_RULE, "all dbus names");
}
static void