GNOME Bugzilla – Bug 507258
[patch] Avoid warnings with telepathy-glib >= 0.7.1
Last modified: 2008-01-07 11:42:48 UTC
telepathy-glib 0.7.1 will change TpChannelIface to make the "channel-type" property construct-only and writeable, instead of read-only, for the benefit of the new client-side code (the change is already present in the darcs version). When a channel is constructed, the GObject infrastructure will call the set_property callback to set channel-type to the default value (NULL), causing a warning. To avoid warnings when a channel is constructed, please ignore attempts to set the channel type, the same way you now ignore attempts to set the handle type. The attached patch should be sufficient. See also https://bugs.freedesktop.org/show_bug.cgi?id=13896 (originally filed against Gabble).
Created attachment 102111 [details] [review] Proposed patch
Looks good to me, you know the code better than I do ;)
Well, I'm not a committer (as far as I know anyway :-) so please commit my patch if you like it. (I assume patches in Bugzilla are the right way for Telepathy hackers to get changes like this into g-p-m? If there's a better way, let me know - as far as I know, most of us don't have Gnome commit access)
Bugzilla is good, and you can/should ask for an account as well. Thanks for the patch! 2008-01-07 Bastien Nocera <hadess@hadess.net> * telepathy/im-channel.c: (phoney_im_channel_set_property): Patch from Simon McVittie <simon.mcvittie@collabora.co.uk> to avoid warnings with telepathy >= 0.7.1 (Closes: #507258)