Ok, I realise that dev packages, even with doc packages, are pretty useless without examples… So I took a little time today and packaged up the tests and examples, libmokoui2 (with documentation) and openmoko-dates, and added them to my repository. So if you liked Dates before, perhaps you want to try out openmoko-dates, or check out the new back-end library. I’d like to think that libjana is the calendaring/time equivalent to libempathy; please don’t make me cry that I’m wrong ๐
Also, a friend pointed out that I got the source lines wrong yesterday (after I asked him to test it..), so here are the proper ones:
deb http://ppa.launchpad.net/cwiiis/ubuntu gutsy main restricted universe multiverse
deb-src http://ppa.launchpad.net/cwiiis/ubuntu gutsy main restricted universe multiverse
Feedback would really be appreciated!
libjana packages for Ubuntu gutsy
Thanks to Ubuntu’s new Personal Package Archives, there are now libjana packages available for Ubuntu gutsy. I haven’t packaged openmoko-dates/libmokoui yet as there’s a critical bug in MokoFingerScroll I only noticed yesterday (I’d been developing on a dual-core laptop previously, which seems to mask the bug…) that stops it from being useful. I will add libmokoui, openmoko-dates and perhaps more openmoko bits when I get the time. I also haven’t packaged the examples/tests yet as I just haven’t had the time/inclination to sort it out, but I will in due course (meanwhile, check out the svn).
Anyway, if you want to try out any of the libjana bits, the development files and documentation are all packaged and ready to go. The libraries are compiled static (and the pkg-config files reflect this, so it’s not something you need to worry about), as they’re pretty small and not really ready to be used as a dll. The documentation is accessible through devhelp when installed. The /etc/apt/sources.list lines:
deb
MokoFingerScroll event magic
So, spent some time at MobileBarCamp and at work this Monday, re-organising MokoFingerScroll and how it synthesises events. Previously, all events would be intercepted and only after the cursor button was raised would a whole ‘click’ event be synthesised. This is probably how it works in Qtopia, as they seem to have the same problems in their similar widget in Qtopia phone edition (which I recently tried on the OpenMoko phone).
Now, when the mouse is clicked, an enter and a button-down event are sent to the underlying widget – then all following motion events are transformed and forwarded onto that widget too. When the mouse is raised, if scrolling occured, a leave event is sent, then a button-raise event are sent. If no scrolling occured, we want the underlying widget to respond to the click, so we send the button-raise event first, then the leave event.
The up-shot of this is, text selections work in MokoFingerScroll (hah, take that Qtopia! +1 GTK!) and behaviour of widgets in MokoFingerScroll is just overall more reliable and predictable (for example, buttons present their ‘pressed’ state while you hold down on them now). There are still a couple of kinks to work out, but this is much better than the previous method.
libjana documentation
Was going to get my hair dreaded today, but it ends up it’s still a couple of inches too short ๐ So spent most of the day watching Bones and filling in the blanks for the documentation of libjana. 100% symbol docs coverage ๐ (libjana-ecal and libjana-gtk to follow in the near future) This means that all the info is there if you wanted to write a new back-end for libjana, say, for example, xmltv for TV listings, or GPE, or whatever KDE uses, etc. It also means you could write interface widgets for another toolkit, like Qt, EFL, or Clutter. No excuses for people not to be doing my work for me now, hop to it! In all seriousness though, libjana[-ecal|-gtk] may be something you want to consider if you’re writing an application to interoperate with calendar data on the GNOME desktop and you’ve seen what using libecal is like. I’ll try and write something a bit more substantial about it at some point.
[Update]: libjana-ecal documentation complete
]]>