Ethereal-dev: RE: [Fwd: Re: [Ethereal-dev] GTK2 only: Application specific stoc k icons (f or

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Tue, 18 Nov 2003 00:00:06 +0100
| From: Ulf Lamping
| 
| Biot Olivier wrote:
| 
| > It works on cygwin but I get compiler warnings about 
| passing arg1 from
| > gdk_pixbuf_new_from_xpm_data from incompatible pointer 
| types. Ethereal
| > however runs without crashing on the toolbar. I compile 
| with GTK2 and GLib2.
| > 
| 
| Hmmm, this line should be ok, but let's have a try, by adding the
| following cast:
| 
| pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)
| (pixmaps[i].xpm_data));
| 
| This should fix the problem.
| 
| Could you try this out, and send me a response, if it did fix 
| the warning?

This indeed fixes the warning; now I see GCC complaining at lines 305--307
of toolbar.c about unused variables icon, iconw anc mask.

Regards,

Olivier