[9456] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: events_pending

daemon@ATHENA.MIT.EDU (Havoc Pennington)
Tue Oct 20 18:31:45 1998

Date: Tue, 20 Oct 1998 17:29:40 -0500 (CDT)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: gtk-list@redhat.com
In-Reply-To: <199810201931.WAA28388@jytko.jyu.fi>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


On Tue, 20 Oct 1998, Pauli Virtanen wrote:
>
> How can I do this in gtk+.
>

Connect to key_press_event and button_press_event and whatever else you
care about, and have your callbacks do the right thing. Or connect to
plain event, and then do:

switch (event->type) {
case GDK_BUTTON_PRESS:

break;
/* etc */
}

in your callback.

Havoc



-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post