Sunday, November 13, 2005

New minor release for Maemo GAIM

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.deb

New 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.

2 comments:

Chris Tooley said...

I can't seem to get berliOS to let me download the client. We'd like to include this in a suite of software or our service. I'd be happy mirror this project for you on our US connection.

Anonymous said...

CHEAP wow gold BUY wow power leveling MY wow power leveling