Wednesday, October 22, 2008

Dear lazyweb.. can i do something like:

widget = gtk_file_chooser_widget_new(GTK_FILE_CHOOSER_ACTION_OPEN);

with hildon file manager? I want to embed a file chooser in another dialog.. is it possible?
thank you!

How to add a GtkUiManager menubar to a hildon window

Some time ago i found a very cool tip from this blog ( a simple and easy function to convert ftom a gtkuimanager menubar to a gtkmenu. We need to do this because hildon_window_set_menu requires a GtkMenu. Let see the source:

static GtkWidget *
menubar_to_menu (GtkUIManager *ui_manager) {
GtkWidget *main_menu;
GtkWidget *menubar;
GList *iter;

/* Create new main menu */
main_menu = gtk_menu_new();

/* Get the menubar from the UI manager */
menubar = gtk_ui_manager_get_widget (ui_manager, "/MenuBar");

iter = gtk_container_get_children (GTK_CONTAINER (menubar));
while (iter) {
GtkWidget *menu;

menu = GTK_WIDGET (iter->data);
gtk_widget_reparent(menu, main_menu);

iter = g_list_next (iter);
return main_menu;

And you can use it this way:

ui = gtk_ui_manager_new ();
hildon_window_set_menu(HILDON_WINDOW(window), GTK_MENU(menubar_to_menu (ui)));

Saturday, October 18, 2008

homebank 4.0b-6 is ready!

As some of you may have noticed i've released a new version of homebank, main fixes are:
- fixed more too large dialogs
- moved from gtk file chooser to hildon file chooser
some brave itt users have already tested this version so i'm now telling it to the main public! i'll wait more positive reports and then i'll promote this version (or the next one with more fixes) to extras.
thank you very much to everyone who tested this anf older versions. my next blog posts will be about some tips while porting a gtk app to maemo.

Wednesday, October 15, 2008

new homebank version

hi all! i've just uploaded homebank-4.0b-5 to diablo extras-devel. Changelog:
- fixed stats report window
- fixed manage transactions window
- added dependency to libofx to enable OFX support
- fixed packages

get it from extras-devel while it's hot! And feel free to donate something if you want!

Sunday, October 12, 2008

sunday random post

i've uploaded a new homebank version to the maemo garage project. I've changed more dialogs to fit better on the small maemo resolution. I received some positive feedback about my work.. thank you very much! it's always very nice when someone take some time to thank someone else.. this is a major strength in open source developers! thank you!

yesterday i went with my girlfriend in a pizzeria near Reggio Emilia (Buco della signora). We think that there you can eat the best pizza around here! we had pizza cicciolina (ciccioli and gorgonzola) and pizza gaudi (lardo and vinegar). delicious (gaudi is better)! i don't have a photo sorry.. maybe next time!

This summer i went to australia to attend world youth day 2008 and this morning there was a mass in casalmaggiore centered around the wyd event. Nice! But i'm quite tired now..

Thursday, October 9, 2008


tonight i've started to read a new manga! psyren! it seems cool.. look on mangashare if you want to download it! more on it later.. i've just started right now.
cool app of the day: cbrPager is a really good manga reader for maemo.
oh, today i've seen Alessandro Rubini here at my workplace! nice!