[jscore] Fix object path handling in signals (now you can filter with the path finally!)
authorKalle Vahlman <kalle.vahlman@movial.com>
Fri, 8 Jan 2010 08:32:24 +0000 (10:32 +0200)
committerKalle Vahlman <kalle.vahlman@movial.com>
Fri, 8 Jan 2010 08:32:24 +0000 (10:32 +0200)
jscorebus/jscorebus-signal.c

index 31e6561..c710748 100644 (file)
@@ -108,7 +108,6 @@ void signal_finalize(JSObjectRef object)
     g_free(priv->signal_name);
     g_free(priv->interface);
     g_free(priv->sender);
-    g_free(priv->object_path);
     g_free(priv->match_rule);
     dbus_connection_unref(priv->connection);
 
@@ -330,7 +329,6 @@ JSObjectRef jscorebus_create_signal (JSGlobalContextRef context,
   priv->interface = interface;
   priv->signal_name = signal_name;
   priv->sender = sender;
-  priv->object_path = object_path;
 
   priv->enabled = false;
 
@@ -358,7 +356,7 @@ JSObjectRef jscorebus_create_signal (JSGlobalContextRef context,
   }
   if (priv->object_path != NULL)
   {
-    matchv[i++] = g_strdup_printf("object_path=%s", priv->object_path);
+    matchv[i++] = g_strdup_printf("path=%s", priv->object_path);
   }
 
   priv->match_rule = g_strjoinv(",", matchv);