Category Archives: hacking

g_variant_equal() and dictionaries

For anyone using g_variant_equal() with a type containing a dictionary, you should the aware that, somewhat unexpectedly in my opinion, g_variant_equal() only returns true if (and only if) the keys in the dictionary are in the same order (GVariant implements … Continue reading

Posted in example code, gvariant, hacking, programming, work | 2 Comments

introspecting tp-glib and converting DBus-GLib GValues to GVariants

Telepathy is a modular framework. At the very heart of Telepathy there is a specification that describes how the various connection managers, clients and other components interact with each other. The specification is written in terms of a set of … Continue reading

Posted in c, example code, gobject-introspection, hacking, programming, telepathy, work | Comments Off

Empathy master ported to GSettings

GLib 2.25.9 just came out, which included a GSettings bugfix I needed, so I’ve just merged the GSettings port branch I wrote for Empathy into master. Unfortunately this does not come with a fancy screenshot. It uses the DConf backend … Continue reading

Posted in empathy, hacking, work | Comments Off

The Meego 1.0 People Panel

So Meego 1.0 for Netbooks shipped last week. Although I miss that tubby cat, Meego 1.0 is very visually attractive and quite nifty. One of the really neat things about Meego is how it integrates messaging right into the interface. … Continue reading

Posted in hacking, meego, telepathy, work | 4 Comments

telepathy-glib GObject-Introspection and TpBaseClient

In Telepathy libraries such as telepathy-glib, telepathy-python and telepathy-qt4 there are two kinds of API. There's what we call low-level API, which is a direct wrapping of the D-Bus API exposed by Telepathy components and automatically generated from the Telepathy … Continue reading

Posted in example code, gobject-introspection, hacking, javascript, telepathy, work | Comments Off

empathy: the future's gonna be awesome

So we've been doing a bit of work on Empathy lately (but too late for GNOME 2.30 I'm afraid), and trying out some crazy new ideas. One of these Favourite Contacts. You can now mark contacts in your contact list … Continue reading

Posted in empathy, gnome, hacking, work | 1 Comment

tramtracker in maemo extras-devel [plus some crap about Optus]

Finally got a version of tramtracker (a client for tracking Melbourne trams) and python-suds uploaded to Maemo's extras-devel. There are a couple of issues, the known ones relate to this bug. In my head I was having a race to … Continue reading

Posted in hacking, maemo, optus, tramtracker | Comments Off

fixing button theming with GtkBuilder

This is a bit icky. It would be neater if the Python bindings exposed hildon_gtk_widget_set_theme_size(), but not much. So, to fix the button theming if you've created your interface with GtkBuilder, it looks something like this: # these aren't exported … Continue reading

Posted in hacking, kludge, maemo, python | Comments Off

happy new year

Had a pleasant day off eating snacks, watching The Pretender with friends and hacking on my tram tracking app. I added geolocation, which meant needing to test on the device, so I had to package up python-suds for Maemo (git-buildpackage … Continue reading

Posted in hacking, maemo, packaging, python, tramtracker | Comments Off

a hacky way of monitoring messages in Telepathy

Sometimes people come up with some creative solutions to solve their problems. The correct way to monitor data, such as messages, coming from Telepathy is to write an Observer, however sometimes you just want to get a feed of all … Continue reading

Posted in hacking, python, telepathy | Comments Off