Re: gtk_timeout_add problem



On Thu, 2005-12-15 at 09:24 +0100, N poleone wrote:
> 2005/12/15, Paul Davis <paul linuxaudiosystems com>:
> > 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...


wow, somehow i completely missed out on the C++ part. amazing.

why are you not using gtkmm ? this allows you to use a fully C++ idiom
(or several of them) with GTK. its very, very, very nice. and where its
not nice, that's GTK's fault :)

--p





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