GDBusProxy: Don't warn when calling methods on other interfaces

If we know the expected interface (e.g. :g-interface-info is set),
then we always warned when calling a method on a different
interface. Don't do that, there's no way the expected interface can
know anything about this method.

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2010-06-22 17:48:35 -04:00
parent d68f8012b2
commit 6920e503e6

View File

@ -2215,8 +2215,10 @@ g_dbus_proxy_call (GDBusProxy *proxy,
g_object_set_data_full (G_OBJECT (simple), "-gdbus-proxy-method-name", g_strdup (target_method_name), g_free); g_object_set_data_full (G_OBJECT (simple), "-gdbus-proxy-method-name", g_strdup (target_method_name), g_free);
/* Just warn here */ /* Warn if method is unexpected (cf. :g-interface-info) */
expected_method_info = lookup_method_info_or_warn (proxy, target_method_name); expected_method_info = NULL;
if (!was_split)
expected_method_info = lookup_method_info_or_warn (proxy, target_method_name);
if (expected_method_info) if (expected_method_info)
reply_type = _g_dbus_compute_complete_signature (expected_method_info->out_args); reply_type = _g_dbus_compute_complete_signature (expected_method_info->out_args);