Re: segfault on return to gkt_main()



Sven Neumann a écrit :

> Hi,
>
> Thierry Brichler <thierry brichler noos fr> writes:
>
> > > I currently have a callback fuction called
> > > void
> > > on_butApply_clicked                    (GtkButton       *button,
> > >                                       gpointer         user_data)
> > >
> >
> > I don't know if this is your main concern, but the general prototype of a
> > callback function is :
> > gboolean callback (GtkObject *object, gpointer data)
> > and not void callback (GtkButton *button, gpointer data)
>
> this is not true. Most signal callbacks in GTK+ are void functions.
> Only all GDK event callbacks have gboolean return values. There is no
> general rule for this; you'll have to check the header files or the
> API reference.
>
> Salut, Sven

Sorry for this simplification.
When I read the original message, it looked as a callback function called
after click (typically GDK event callback).




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