Today, I finished hacking together a ‘person’ applet, using – of course – Telepathy and the excellent Empathy’s libraries created by Xavier Claessens.
While I’m at it, you can read more on telepathy and empathy in my GUADEC 2007 talk (also see my pictures on flickr).
Here’s what it looks like:
The right-hand panel contains a number of megaphone applet instances, one for each contact I often talk to. If I click on the avatar (or the generic contact icon) it creates a text chat. The beauty of Telepathy is that the text chat will be handled by my favorite text chatting application, in this case Empathy itself, but it could be konqueror or whatever other program capable of handling text chats.
The first time the applet is added, you can choose a contact to be displayed. The contact chooser re-uses the empathy contact list as found in libempathy-gtk. Simply find your contact in the list, click ok and you’re set.
The applet also offers an ‘Information’ dialog, taken again from libempathy-gtk that allows you to view and edit the contact vcard, and edit the groups to which it belongs.
And amazingly, the applet only has 570 lines of C code and that includes the gobject and applet boilerplate…
In completely unrelated and old news, we got our traditional gourmet restaurant with vincent, xavier and cédric at Birmingham. Delightful!
Vincent certainly seems to enjoy the moment !
Comments
9 responses to “Megaphone Applet”
Dude, great slides.
Hey Raph!
That looks bloody cool. Sources?
Now I just have to come up with some even cooler usage of XESAM when I have libxesam-glib ready 🙂
Cheers,
Mikkel
Sources are going to be included in empathy SVN HEAD
http://bugzilla.gnome.org/show_bug.cgi?id=464954
Why not several users in only one instance? It would be lighter solutions.
“but it could be konqueror or whatever other program capable of handling text chats.”
/me giggles
Wow, this guy with the blue hat certainly looks weird!
Woohoo!
Noticed again this, one of my pet peeves.
Augh that transparent panel is horrible. Those separators make my eyes bleed, definite blocker for using transparent panel 😮 Gnome panel always has sucked in that.. Glad you don’t have the window list there, it would make me vomit already.
Cédric???
What a strange name…