[Bug 29320] Expose resources

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 3 13:36:01 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29320

--- Comment #4 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-09-03 04:36:01 PDT ---
Regarding Gabble:

Regression tests are good, and should have caught this:

> +  if (name == g_quark_from_static_string ("MailNotificationFlags"))
> +    g_value_set_uint (value, GABBLE_RESOURCES_HUMAN_READABILITY_MAYBE);
                                              ^^^^^^^^^^^^^^^^^^^^^

> +static const gchar *
> +presence_id_to_status (GabblePresenceId id,
> +    TpConnectionPresenceType *type)

Surely this *must* be duplicating something in conn-presence.c? (It's entirely
possible that the information exists in conn-presence.c but needs some
refactoring, though.)

(Be particularly careful about Senko's new plugin-defined presences, which can
be visible on the self-handle (if the self-resource is exposed) and didn't
exist when you wrote this branch...)

> +      val = tp_g_value_slice_new_boxed (
> +          GABBLE_HASH_TYPE_RESOURCE_INFORMATION_MAP, resources);
[...]
> +      g_hash_table_unref (resources);

Just take_boxed to avoid a copy?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list