Re: Question on Unusual widget
- From: Daniel Elstner <daniel elstner gmx net>
- To: gtk-list gnome org
- Subject: Re: Question on Unusual widget
- Date: 17 Aug 2001 22:45:22 +0200
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]