Ethereal-dev: [Ethereal-dev] GTK2 only: Application specific stock icons (for menu and toolbar

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 15 Nov 2003 12:55:38 +0100
Hi!

The following is GTK2 specific, GTK1 should not be affected.

I've recently added a method to generate application specific stock icons (see gtk/toolbar.c) from the xpm files we already have.

This enables us to define icons, and use them like the predefined stock icons, coming with the GTK2 distribution.

My changes will:

a. show some more icons in the GTK2 menu, as they can be used there now
b. clean up things in toolbar.c, as all icons can be used the same way

To be able to do this, the gdk_pixbuf lib is needed. On win32, I have changed the config.nmake for this. Automake platforms seems to need no explicit definitions for this change.

I've tested this on win32, other platforms should work the same way. Please let me know, if any problems occurs.

Regards, ULFL