Bye Gran Canaria
After an exhausting set of flights (Las Palmas - Madrid - Frankfurt - Oslo) we landed safely at Oslo airport yesterday.
I've had a great couple of weeks on Gran Canaria. First 8 days at Gran Canaria Desktop Summit then a week vacation in the town of Mógan.
GCDS was great - there were a lot of interesting talks and I met many new friends from the Open Source world. I really liked that GUADEC and Akademy both were at the same location - there was an general attitude towards cooperation between GNOME and KDE people. One of the most interesting projects I encountered was Zeitgeist - a system for logging events. Zeitgeist originally started as a GNOME project, but during the conference the team decided to split the project into a platform independent engine and a GNOME specific user interface
The second week we spent in a beautiful house in the town of Mógan which Lasse had access to. My girlfriend Mari arrived for the week
We spent numerous days at the beach and some days exploring the island. I'll post photos on Flickr soon!
I suck at blogging
I really do, but here's an update on what's happening in my life:
I'm going to India for a year as a foreign student! More specifically Indian Institute of Technology, Madras in Chennai. I'm very excited, but I'm really going to miss my girlfriend... If everything goes as planned, she will join me the second semester in Chennai - that would be awesome
I'm now finished with the third year of my master's degree! I've chosen to specialize in Artificial Intelligence. Let's make computers think! Interesting question: If you're running a program with consciousness, is it unethical to shut it down?
Finally, I'm currently at Gran Canaria attending Gran Canaria Desktop Summit! I have listened to many interesting talks and met a lot of cool people from both GNOME and KDE
I'm especially excited about GNOME Zeitgeist and GNOME Shell. It would be cool to see what machine learning techniques we could apply to the data gathered from Zeitgeist. Next stop the intelligent desktop!
That's all for now.
Strange errors from GtkComboBox? Glade’s probably to blame!
Alright, so I've been trying to debug this strange issue with two GtkComboBoxes which I load with Glade XML. As these two combo boxes have the same structure, I create a function for filling them with data. This procedure sets up the model and two cell renderers: First a GdkPixbuf renderer, then one for text. Then it adds some data to the model. When I call this method on the first combo box, it works fine. However when I try to do the exact same on the second combo box, GObject repeatedly spews out the following warning:
GLib-GObject-WARNING **: unable to set property `text' of type `gchararray' from value of type `GdkPixbuf'
This warning is triggered whenever anything happens with the erroneous combo box: Rendering, hovering over the box, selecting items, etc. The pixbuf is also shifted 20px or so to the right in the box. After hours of debugging this, I discovered that the XML for the two combo boxes were different:
Working combo box:
<widget class="GtkComboBox" id="sound-combo">
<property name="visible">True</property>
<property name="add_tearoffs">False</property>
<property name="focus_on_click">True</property>
</widget>
Erroneous combo box:
<widget class="GtkComboBox" id="app-combo">
<property name="visible">True</property>
<property name="items" translatable="yes"></property>
<property name="add_tearoffs">False</property>
<property name="focus_on_click">True</property>
</widget>
Apparently I had previously added some simple text entries to this last combo box in Glade, then deleted them afterwards as I figured I would generate this content in the application instead. Instead of removing the items property altogether, Glade set it to the empty string. This difference was not apparent in the Glade user interface. Thus this combo box would already have a text cell renderer by default at index 0 and later setting it to a GdkPixbuf would result in errors.
My first major GNOME patch!
A while ago (may 06) I submitted a patch for a completely new user interface and backend code to the Change Password dialog of GNOME Control Center. It got accepted and recently (well, a while ago) I found that it was included in the latest release of Ubuntu! Hooray! My first major GNOME patch has hit the streets(?)
So if you're running a recent version of GNOME, go to System -> Preferences -> About Me and hit the Change Password button in the upper right corner. There you have it!





