Tag support, dcop query support



Hey Todd and all,

The attached patch adds support to Drivel for making tagged posts,
following the protocol changes noted here;
http://www.livejournal.com/community/lj_clients/184137.html

I've tested it and it seems to work fine. The patched drivel only sends
prop_taglist if the user has set the value to some value. This should
preserve compatibility with LiveJournal servers not running code
supporting tags.

Patch also adds support for getting the current playing song from
amarok, one of the KDE media players. It will be trivial to add
additional DCOP media players to the supported list. It's fairly simple,
it just adds detection of the "dcop" program to configure.ac. If the
program isn't actually present on a user's system, nothing bad happens.

I have gnome.org commit, so let me know if the patch is OK and I'll
commit. The only TODO item is to add drop-down support for tags - the LJ
people haven't exposed the list of current tags in the protocol yet. The
tag entry is a combo box as they've promised to add that feature soon;
once they do, I'll get the populate the combo box with that information.

Also, a question: there an irrating thing with drivel is that the X
selection buffer is always clobbered to contain the blog username after
running drivel. This always bites me when running drivel to blog
something in my X selection buffer. The reason this happens is the 
call to:
  gtk_editable_select_region (GTK_EDITABLE (GTK_BIN (dc->login_name)->child), 0, -1);

This selects the username, and clobbers the X selection buffer. Does
this need to happen? Or does someone know how to achieve the same result
without clobbering X's buffer? It's really annoying! :-)

Anyway, have fun
Grahame

-- 
Grahame Bowland                       Email: grahame bowland uwa edu au
University Communications Services    Phone: +61 8 6488 1175
The University of Western Australia     Fax: +61 8 6488 1109
                                     CRICOS: 00126G




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]