]> git.0d.be Git - empathy.git/commitdiff
dispatcher: allow not caring about handle type when looking up RCCs
authorJonny Lamb <jonnylamb@gnome.org>
Wed, 10 Mar 2010 18:34:34 +0000 (18:34 +0000)
committerJonny Lamb <jonnylamb@gnome.org>
Wed, 10 Mar 2010 18:34:34 +0000 (18:34 +0000)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy/empathy-dispatcher.c

index caf697cb68f419fec53e0f66db27e844630af5b1..1edefe9bf3338313b5121e9bd85ae1b422f65335 100644 (file)
@@ -1808,7 +1808,7 @@ channel_class_matches (GValueArray *class,
   h_type = tp_asv_get_uint32 (fprops,
                               TP_IFACE_CHANNEL ".TargetHandleType", &valid);
 
-  if (!valid || handle_type != h_type)
+  if (!valid || (handle_type != h_type && handle_type != TP_UNKNOWN_HANDLE_TYPE))
     return FALSE;
 
   if (fixed_properties != NULL)
@@ -1978,7 +1978,8 @@ setup_varargs (va_list var_args,
  * @dispatcher: an #EmpathyDispatcher
  * @connection: a #TpConnection
  * @channel_type: a string identifying the type of the channel to lookup
- * @handle_type: the handle type for the channel
+ * @handle_type: the handle type for the channel, or %TP_UNKNOWN_HANDLE_TYPE
+ *               if you don't care about the channel's target handle type
  * @first_property_name: %NULL, or the name of the first fixed property,
  * followed optionally by more names, followed by %NULL.
  *