Ok, whats happening on Maemo GAIM
1. I opened berlios project for maemo gaim, so now if someone wants to join in improving the port for maemo feel free
https://developer.berlios.de/projects/maemo-gaim/2. Made another minor update release which is available from
http://download.berlios.de/maemo-gaim/maemo_gaim_1.5-dk-1_arm.debNew features
- Hildon stype toolbar and menues (did a real bad hack) more on that in a bit
- Preference dialog is now a Appview, so its quite convinent to use
- App should now be able to also work in non-fullscreen mode
- Should be more stable :) [since when has stability become a new feature ;)
Ok, now about the hack
GAIM makes extensive menues using the factories, and I just couldnt find to sew the existing menu widget to the appview. while there is an API to get the menu widget e.g to attacj menuitem etc, there is no API I could find for repacing the menu with a user provided menu.
So I started to dig into the hildon_appview.c file to see what is the magic. The widget is having a pointer to priv struct , the first member of it is the menu widget, which I wanted to change, so using brute C pointer force, I just changed the pointer of the internal structure to contain pointer to my menu widget :)
void **ptr = HILDON_APPVIEW(app_buddy_view)->priv;
*ptr = gtk_item_factory_get_widget(gtkblist->ift, "");
Hopefully I wont have to rely on this hack and HildonAppView widget would have an API to enable this.