Ethereal-dev: [Fwd: Re: [Ethereal-dev] GTK2 only: Application specific stock icons (f or menu

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: Mon, 17 Nov 2003 19:43:17 +0100
Subject: Re: [Ethereal-dev] GTK2 only: Application specific stock icons (f or menu and toolbar)
Date: Sat, 15 Nov 2003 14:21:54 +0100
From: Ulf Lamping <ulf.lamping@xxxxxx>
To: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>

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?

Regards, ULFL