Showing posts with label maemo. Show all posts
Showing posts with label maemo. Show all posts

Wednesday, October 22, 2008

Dear lazyweb..

...how 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 (http://blogs.igalia.com/svillar): 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!


Wednesday, October 8, 2008

Porting HomeBank to maemo

i've started porting homebank to maemo.. what i have done:
* compiled for arm/maemo
* hildonized (fullscreen, menu, toolbar) main, account and new transaction window
* converted svg icons to png (maemo doesn't seem to like svg icons)
* created deb infrastructure

it seems to work fine! now i have to port my data from gnucash to homebank.. will do!

what remains to be done:
* create a garage project
* add application to extras
* contact homebank author so we can merge my work