| Subcribe via RSS

libchamplain 0.2.7

November 16th, 2008 | No Comments | Posted in Gnome, OpenStreetMap, Technologie, libchamplain

I am announcing the release of libchamplain 0.2.7. Libchamplain is a ClutterActor to display maps.  Libchamplain-gtk is a Gtk+ widget wrapping it.

This is a screenshot of the demo launcher displaying OpenStreetMap data for Helsinki (Finland).

This is a screenshot of the demo launcher displaying OpenStreetMap data for Helsinki (Finland).


Enhancements:

  • Double clicking on the map will now zoom and recenter.
  • When resizing a ChamplainView, the centered content will still be centered after the resizing.  Can be disabled.
  • The Map’s license is displayed by default on the lower right corner. Can be hidden.

Fixes:

  • Fix a memory leak
  • Some code clean-up
  • Fix Bug 558026 – zoom in + center_on != center_on + zoom in
  • Fix missing zoom level in OpenStreetMap Mapnik

libchamplain-gtk has been version bumped to 0.2.7 - no changes since 0.2.6.

This should be the last release of the 0.2 series.  I plan to rewrite part of the internals to better follow the MVC principle, which will improve the code’s readability and allow for more complex features to be introducted in the future.

More info on the project page.

12 months

November 14th, 2008 | No Comments | Posted in Gnome, Maemo, Technologie

I did miss my anniversary too, but only by 2 days :)  On November 12 last year, I joined Collabora in the Montréal office.  It has been a very interesting year.  While there is half a ton of things I can’t discuss here, I can talk about why I like being at Collabora ;)

While my task did change a lot during the last year, the nature of my job didn’t.  I am still writing Open Source software.  Everything I do is available to the public and licensed in a proper way.  This is a very important aspect of my job and I like it.  But how do they make money, you ask? By finding and convincing customers that contributing to open source software is for their best.

With Collabora, I was able to travel across Western Europe (and more very soon) and meeting really interesting people.  If I had stayed at my previous job, I’d never have been to FOSDEM, GUADEC, the Maemo Summit and more.  This is one very important advantage of working for Collabora.

I was also offered chances I wouldn’t have everywhere like presenting at conferences and working on big projects.  This all makes me very glad of my decision 12 months ago, but most of all, I’m very happy to work with such a great team.

My view on the new proposed Gnome shell

October 22nd, 2008 | 1 Comment | Posted in Gnome, Technologie

Vuntz and mathias, while I understand the rationale behind the static panel and why mathias doesn’t like it, I’d like to tell you why I like the new concept.

My grandmother can barely tell the difference between a launcher, the Window list and the Notification area.  She was introduced to Linux by my grandfather, who was introduced to Linux by me 2 years ago.  They have never used any other OS in their life.

Part of the issue with the notification area is that aMSN sits there constantly.  But when it is not running, she has to click on the green people on the left (the launcher).  When the window is not open, she has to click on the green people on the right (notification area).  When the window is minimized, she has to click on the green people at the bottom (Window list).

This is something MacOS X does much better.  The launcher icon transforms itself as a notification area (think of Adium).  It is also a way to bring back your windows from that application.  And it is rather easy to see which applications are running from a glimpse.

The activities concept proposed for Gnome is interesting.  I really like the idea of having a “composé” list of the currently active applications (minimized or not) and that presence (or IM) is integrated in the panel (and probably always running).  I really like the fact that there is no launcher area (although I use it constantly).  I do think the launcher area only exists because the Applications menu is just too slow to launch apps. Also in an office environment, the launch area is often used to place the sacred company applications.  Therefore, we should provide a way in the activities menu to have a set of applications that should always be on the list (before we have to click on more).  This is like the activities at the top of the Start menu in Microsoft Windows.

I do find that being unable to raise a minimized window in one click is less interesting.  But should the minimize button really exist? The minimize button is just a way to say “get out of the way, I want to see the window behind” for people always working with full screen apps.  Why not replace it with a more convenient functionality, like “swap with behind”.  More thinking needed ;)

In conclusion, the new design is nice, it should provide a less cluttered desktop for every one.  Regular users (my grand-mother) should catch how to manage their windows and apps with more ease while power users should use something like Gnome-do or Deskbar to launch applications faster.

WebKitGtk Accessibility at Boston Gnome Summit

October 15th, 2008 | No Comments | Posted in Gnome, Technologie, WebKit

Collabora sponsored my trip to the Boston Gnome Summit 2008. It was my first Boston Summit and I have to say that I enjoyed the event: it is more a hackfest than a conference which gives the attendees time to hack. They split the people among rooms on specific subjects. Based on the opening talk, I felt that the a11y room should be quite interesting.

Willie Walker and Joanmarie Diggs were keen enough to give Marco and I a good introduction talk on a11y and how the different a11y technologies work on the Gnome stack. They also took the time to explain us how Mozilla does a11y and how WebKitGtk doesn’t do much right now.

Alp Toker did start the a11y work some weeks ago. I think he got busy as he forgot to publish all his work.  After a quick chat, he posted a patch under Bug 21546 for everyone to contribute.

Accessibility absolutely needs to be fixed before WebKitGtk can be considered for a possible inclusion in Gnome 2.26. This means we need to make this a high priority for us Gtk+ developers as no one should be left behind (para-quoting of a US act was unintentional).

To make a11y work in WebKitGtk:

  • we need to get caret browsing working: Alp worked on that, but it needs work.
  • we need to expose the page’s content through AT-SPI and Atk: Alp did a lot of work, who is volunteering to review the 50k patch? :) and continue the work?

Please take time to have a look at Gnome Accessibility Technologies and their documentation.

Unfortunately, making accessibility work will take time and it will progress only based on our free time.  But since most of the contributors to WebKitGtk are also contractors, someone willing to fund this work could easily make things progress faster.

EOG Champlain plugin is now merged

October 12th, 2008 | No Comments | Posted in Gnome, Technologie, libchamplain

The code to display maps in EOG for you geotagged photos is now merged into EOG Plugins.

You can grabe the code there:

svn co http://svn.gnome.org/svn/eog-plugins/trunk eog-plugin

To build it, you will need libchamplain and libchamplain 0.2.2 or later.

You can find 2 sample geotagged images on the bugzilla.

Libchamplain 0.2.2

October 7th, 2008 | No Comments | Posted in Gnome, Technologie, libchamplain

In this release of your favorite Gtk+ Map Widget you get:

  • Bug fixes:
    • zoom-level property changes are notified if changed when setting a new map-source;
    • Markers are now ordered from top to bottom instead of first added, first drawn using ChamplainLayer.  This is more natural to the eye.
  • Less exported symbols;
  • A less error prone library (data passed as parameter is now validated); — thanks to Marco for pointing out my Engrish lol

Grab the 0.2.2 release here!

Since I forgot to blog abour libchamplain 0.2.1, here is what was improved:

  • Bug fixes:
    • Markers’ position wasn’t updated when the map was recentered;
    • Build fixes for packagers;
  • A more standard API: (lat, lon) is now used instead of (lon, lat);
  • There is now libchamplain and libchamplain-gtk.  libchamplain can be used alone in a pure Clutter applications, where libchamplain-gtk is obviously a Gtk+ widget that wraps libchamplain.

EOG Map Plugin is now public

With this release, I am also happy to announce that I have published the code for the EOG Map plugin. You can grab it here in the Gnome Buzilla.  Download it, try it and test it, there has to be some bugs left over hehe (although I did my best to polish it!).

I see progress

September 8th, 2008 | 2 Comments | Posted in Gnome, Technologie, libchamplain

I’ve been very busy in the last 2 weeks (with my brother’s emergency surgery and the work), but I did manage to work on libchamplain and code new features.

I finally fixed the limited zoom bug I had (it did take me more than one try!). There were some glitches with small zoom levels (where the map was smaller than the window), but these are history.  I also had to patch clutter-gtk (see bug #1114) to generate [the missing] scroll events to have mouse wheel zooming.

Different map sources are now available. You currently have 3 sources built-in: OpenStreetMap Mapnik, OpenArialMap and Maps For Free Relief.  You can change the map source at run time!  I’ve attempted to write support for other non free sources but their usage terms prevents their use, so I stopped.

Markers (pins on the map) were planned for 0.3, but I figured they were so important that I wrote them earlier. ChamplainMarkers are nothing more than ClutterActors placed at the right position on the map. You are free to draw anything (or load an image) as a marker. I also created a default marker for simple text markers. In the first screenshot, all markers are different because I wanted to demonstrate the parameters you can change (text, font, marker color and font color).  Markers can even be translucient!

Little fixes to the installed files, small animations and complete doc are also in. I think it is now usable in a real-life application. That is why I wrote EOG Map plugin (a very good idea of vuntz).

It is is a plugin for Eye of Gnome that adds a sidebar that displays the geolocation of the image on a map. I even toyed with the champlain API and created an annoying but yet cool throbbing marker.

I’d like to thank the people who helped me put this together. Their early reviews, comments and their help were key to keep me progressing when I was actually growing out gray hair on problems (like getting gtk-doc working).

Now, could your app benefit from a map? Think about it :)  In the mean time, someone wants to package it?

Introducing libchamplain

August 22nd, 2008 | 2 Comments | Posted in Gnome, Technologie, libchamplain

I was planning to announce this on Monday, after a week-end to clean things up, but since another widget with similar features have been announced today, I think I should announce mine as well!

So libchamplain is a Gtk+ widget that aims to display rasterized maps (OpenStreetMap, Google Maps and others) using Clutter to have nice animations.  It is in a workable state (only zooming is limited for now, and that’s what I was planning to iron out this week-end).  See the web site for detailed feature and planned features.

You can grab the LGPLed code on gitorious.  Comments, reviews and patches/branches are welcome :)

Update: I created a screencast to demo it, but we can’t really see the nice animations here.  How do we do a nice screencast of a Clutter based app?

Update: I pushed the missing marshal file, thanks bpeel.