[9460] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: events_pending
daemon@ATHENA.MIT.EDU (Pauli Virtanen)
Wed Oct 21 01:04:40 1998
From: Pauli Virtanen <virtanen@jytko.jyu.fi>
To: gtk-list@redhat.com
Date: Wed, 21 Oct 1998 08:05:35 +0300 (EETDST)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
n 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
Thanx for the reply.
I use 'entry' in the gtk+ as a message window and I use it in two
separate ways:
a) as plain message window and then in non editable mode.
Here's no problem, although I compute the placement.
b) as a dialog window to get answers. Now I should grab
events to that window until the question is answered.
How is that for (;;) loop realized in the gtk+ and
especially in 'entry' or should I use some other widget.
Yes, I can get signals, that's easy, but that wating loop
I can't figure out.
pauli
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null