Re: gtk_timeout_add problem
- From: Paul Davis <paul linuxaudiosystems com>
- To: "N poleone" <napoleone1981 gmail com>
- Cc: gtk-list gnome org
- Subject: Re: gtk_timeout_add problem
- Date: Thu, 15 Dec 2005 09:30:02 -0500
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]