Skip to content

More GWeather on 770 progress

Today, I contined my porting of GWeather to Maemo. I don’t have a happy bundled package to throw up right now, but I’m happy with today’s progress.

The first thing I did was put together a libgweather from the backend code. It was originally rather tangled up with the backend requiring knowledge of the applet object and gconf. After refactoring that, I now have a functional library. Using this I was able to define simple homepage applet that currently queries the infamous Pittsburgh default location. I plan to refactor the gconf code out into another library and then use it from the home applet to query the right location.

In other areas, I attempted to set up a script to run the application with support for internet auto-connection. Unfortunately, nothing gets triggered. I believe this is because the auto-connection library isn’t interposing itself in the path that gnome-vfs uses. This seems rather surprising but it’s all I can think of right now. On the size front, I changed the Locations.xml rule to skip the translations which brings the file size down to a more manageable 1.3mb – it now only takes 20 seconds to bring up preferences. Small favours eh? :-)

Questions that I still have:

  • Why doesn’t the home page wrap a HildonHomeApplet container around user supplied home applets? The lack of this causes them to look inconsistent as the screenshot below illustrates.
  • If a home-applet depends on a library (my libgweather in this case) that is installed in /var/lib/install, can it be found? My experience in scratchbox is that it cannot, and you have to symlink the library into /usr/lib, which seems wrong.
  • What’s the right way to install icons into the icon-theme? Just put them in /var/lib/install/usr/share/icons/? The hello-world example does this and fails miserably.
  • What should a HildonApp based application do in response to a “top_application” event? If the window is currently hidden and you get one of these events, it seems that nothing happens automatically.

Anyway, it’s been a great learning experience doing this. I hope to have another drop tomorrow.

The Home Applet

{ 1 } Comments

  1. Davyd | 26th November 2005 at 07:10 | Permalink

    We’re going to drop GNOME-VFS in favour of James H’s new HTTPResource which should resolve a lot of headaches. It will be very useful code in a lot of places.

    Separation of the front end and the backend is probably worth sending upstream. Often I have wanted to be able to get weather data into some other application, and we do already have the parsers. Once we have weather.gnome.org this sort of thing will be even more useful.

{ 1 } Trackback

  1. Tommi Komulainen | 26th November 2005 at 16:05 | Permalink

    GConf and Application Installer don’t quite mix

    Just noticed an interesting bit in philipl’s Gweather-Maemo README:

    - Gconf schema is not properly installed – I’m not sure how this
    is supposed to be done on the device. I don’t see other apps
    doing it.

    As far as I’ve understood …

Post a Comment

Your email is never published nor shared. Required fields are marked *