Re: gtk_timeout_add problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2005/12/15, Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx>:
> On Wed, 2005-12-14 at 23:29 +0100, N@poleone wrote:
> > Hi,
> > I can't compile using gtk_timeout_add (or g_timeout_add, the problem
> > is the same...). I'm using C++...
> > The error is:
> >
> > In member function `virtual void dialogAcquisizione::on_okbutton2_clicked()':
> > error: argument of type `gint (dialogAcquisizione::)(void*)' does not
> > match `gboolean (*)(void*)'
> >
> > The code is (all in the same class):
> >
> > #include <gtk/gtk.h>
> >
> > gint dialogAcquisizione::acquisisci(gpointer data)
>
> this should return gboolean.
>

I resolved defining the function as static...


--
Ciao da
N@poleone (ICQ# 266220356; MSN Messenger: napoleone1981@xxxxxxxx)
"Le battaglie si vincono con gli uomini che si hanno, non con quelli che
si vorrebbero" (Napoleone Bonaparte)
"Le cose che possiedi prima o poi ti possiedono..." (Fight Club)
"Le donne possono avere bambini...gli uomini computers" (Anonimo)
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux