Re: Problem with g++ and GtkItemFactory functions
- From: Mariano Suarez-Alvarez <msuarezalvarez arnet com ar>
- To: David Topper <topper virginia edu>
- Cc: Sven Neumann <sven gimp org>, gtk-list <gtk-list gnome org>
- Subject: Re: Problem with g++ and GtkItemFactory functions
- Date: Mon, 5 May 2003 16:27:00 -0300 (ART)
On Mon, 5 May 2003, David Topper wrote:
> Hi,
>
> Thanks for the quick reply ... but it doesn't really provide me with a
> solution as far as I can tell:
>
> Sven Neumann wrote:
>
> >there's a comment in the gtkitemgactory.h header file that explains
> >your problem:
> >
> > /* We use () here to mean unspecified arguments. This is deprecated
> > * as of C99, but we can't change it without breaking compatibility.
> > * (Note that if we are included from a C++ program () will mean
> > * (void) so an explicit cast will be needed.)
> > */
> > typedef void (*GtkItemFactoryCallback) ();
> > typedef void (*GtkItemFactoryCallback1) (gpointer callback_data,
> > guint callback_action,
> > GtkWidget *widget);
> >
As the comment says, you need to cast the callbacks to
GtkItemFactoryCallback.
-- m
-----------------------------------------------------------------------
Mariano Suarez Alvarez
Departamento de Matematica - Universidad Nacional de Rosario
Pellegrini 250 - Rosario 2000 - Argentina
De la observacion de la irreductibilidad de las creencias ultimas
he sacado la mayor leccion de mi vida. Aprendi a respetar las ideas
ajenas, a detenerme ante el secreto de las conciencias, a entender
antes de discutir, a discutir antes de condenar. Y como estoy en
vena de confesiones, hago una mas, quizas superflua: detesto con
toda mi alma a los fanaticos.
Norberto Bobbio, Italia civil.
-----------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]