Re: Question on Unusual widget



Am 17 Aug 2001 16:13:02 -0400 schrieb Paul Davis:
> In message <3B7D79F3 6B02557E mainstreetsoftworks com>you write:
> >How should the callback be defined?
> 
> 1) Read the documentation. Its very thorough on such matters, though
>    its definitely not pedagogical.
> 
> 2) gint handler (GtkWidget *w, GdkEventKey *event, gpointer data)
>    {
> 	...
>         return (TRUE|FALSE);
                  ^^^^^^^^^^
This finally solves the problem everybody has with callbacks:
remembering what the appropriate return value is!

Sorry, couldn't resist ;)
--Daniel





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