unity-dev team mailing list archive
-
unity-dev team
-
Mailing list archive
-
Message #00471
python lens question
-
To:
unity-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Sean Dague <sean@xxxxxxxxx>
-
Date:
Thu, 03 May 2012 21:48:17 -0400
-
User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
I'm working on a python lens for Unity in 12.04 for pidgin. The idea
being that online buddies are searchable and by activating them a window
will pop up to message them. I've got the search part of the scope
pretty well under control, nice list of users with their buddy icons
displayed, thanks to reading some of the one hundred scopes project.
Most of this is communicating to pidgin over dbus, with a little
cheating and looking through the xml file for icon file names.
The part that I don't know how to do is catch the click/activate signal
when the item is selected. Unlike most of the lenses, which are serving
up a file or url, there isn't a url for openning a message to a buddy.
However, if I can capture that event in any way, I can open the message
window via a dbus call to pidgin.
Any helpful suggestions here? Would love to get this working and
contribute it up to the one hundred scopes project.
Thanks in advance,
-Sean
--
Sean Dague Mid-Hudson Valley
sean@xxxxxxxxx Linux Users Group
http://dague.net http://mhvlug.org
Follow ups