Making your Maemo 5 Widget Configurable

October 31st, 2009 Comments Off

I wanted to add the ability to configure a widget I was working on. Low and behold the sample code from doesn’t tell you how to do this. I downloaded the source for a widget I use which I know has a settings dialog. Turns out you need to do the following within **_plugin_init():

hd_home_plugin_item_set_settings (&self->parent, TRUE);
g_signal_connect (&self->parent, "show-settings", G_CALLBACK (BUILD_CONFIG_UI_CALLBACK), self);

and inside your build config put up a dialog

GtkWidget *dialog = gtk_dialog_new_with_buttons ("Personal Dataplan Monitor Settings",

Not so bad, right? Now if only it were included in the tutorials…