2005/12/15, Paul Davis <[EMAIL PROTECTED]>: > On Wed, 2005-12-14 at 23:29 +0100, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] (ICQ# 266220356; MSN Messenger: [EMAIL PROTECTED]) "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 mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
