Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : Add new icons to the toolbar


ouais32
01-04-2008, 07:52 AM
Hi,

Is there any way to add new icons to the toolbar ? (new PNG image, new icon ID)

I found the file toolbar.xml which contains declaration of all toolbar icons.
I added a new icon to this file but nothing happened. I copied the file to different locations, rebooted iLiad many times.
In order to append the icon to the toolbar, I call tbAppendPlatformIcon with the icon ID "iconID_forward + 1" (i.e. 67) and it shows :
"(W)mb-applet-icon-container.c:193,doAppendPlatformIcon() Illegal arguments: uaID (1), iconID (67), nIcons (67)"
nIcons always equals 67, no matter how many icons I add to toolbar.xml.

Also, I saw that the header liberipc/eripctoolbar.h contains enum of all icons IDs.
As we can't rebuild that, we will not be able to add any icon to the toolbar ?

Thanks

Adam B.
01-04-2008, 10:43 AM
I'm not sure in what program you're trying to do this, or in the general contentlister.

But it should be possible in 3rd party programs. The community iPDF with bookmark support does this. Take a look at that code to see how.

ouais32
01-04-2008, 11:04 AM
I'm trying to do this in iPDF.
For bookmark support, new icons are actually already existing ones : iconID_bookmark and iconID_sort
Their IDs are in the header liberipc/eripctoolbar.h