After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 567065 - Use EmpathyContactSelector when possible
Use EmpathyContactSelector when possible
Status: RESOLVED FIXED
Product: nautilus-sendto
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: nautilus-sendto-maint
nautilus-sendto-maint
Depends on: 567063
Blocks:
 
 
Reported: 2009-01-08 19:05 UTC by Jonny Lamb
Modified: 2009-03-23 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use EmpathyContactSelector (2.83 KB, patch)
2009-01-20 21:56 UTC, Jonny Lamb
none Details | Review
Updated to HEAD (2.83 KB, patch)
2009-02-28 00:11 UTC, Jonny Lamb
none Details | Review
more comprehensive patch (6.46 KB, patch)
2009-03-18 05:26 UTC, Matthias Clasen
rejected Details | Review
Fixed warnings (3.63 KB, patch)
2009-03-20 14:32 UTC, Jonny Lamb
committed Details | Review

Description Jonny Lamb 2009-01-08 19:05:42 UTC
use EmpathyContactSelector in the empathy plugin when it's merged and released and stop using the horrible code that's in the plugin at the moment.
Comment 1 Jonny Lamb 2009-01-20 21:56:54 UTC
Created attachment 126875 [details] [review]
Use EmpathyContactSelector

The selector's about to be merged, and here's a patch to fix this bug.
Comment 2 Jonny Lamb 2009-01-20 21:58:31 UTC
Oh, this patch is on top of the fifth patch in bug #567596.
Comment 3 Jonny Lamb 2009-02-28 00:11:39 UTC
Created attachment 129699 [details] [review]
Updated to HEAD

I've updated the patch to HEAD.

It still depends on bug #567596.

Can this be committed after bug #567596 quickly?
Comment 4 Matthias Clasen 2009-03-18 05:26:10 UTC
Created attachment 130867 [details] [review]
more comprehensive patch

Here is a more comprehensive patch that not only makes nautilus-sendto build against empathy 2.26, but also lets it run without stumbling over missing symbols from the empathy plugin. 
Wether it actually works for sending files with Empathy, I don't know.
Comment 5 Guillaume Desmottes 2009-03-18 12:43:21 UTC
After a quick look, this patch seems wrong as it's still use the old API (setting FT channel property after its creation instead of passing them to CreateChannel).
Comment 6 Guillaume Desmottes 2009-03-20 10:42:40 UTC
While you are on it, it would be nice to fix these 2 warnings:

empathy.c: In function 'send_file_cb':
empathy.c:195: warning: format not a string literal and no format arguments
empathy.c: In function 'send_files':
empathy.c:256: warning: format not a string literal and no format arguments
Comment 7 Jonny Lamb 2009-03-20 14:32:07 UTC
Created attachment 131030 [details] [review]
Fixed warnings

Updated and fixed warnings.
Comment 8 Guillaume Desmottes 2009-03-22 11:31:31 UTC
+1. Please merge it.
Comment 9 Bastien Nocera 2009-03-23 14:14:52 UTC
2009-03-18  Jonny Lamb  <jonny.lamb@collabora.co.uk>

        * src/plugins/empathy/empathy.c: Fix a couple of warnings and use 
        EmpathyContactSelector. (Closes: #567065)