Re: [gtk-list] Re: widgets not absorbing events properly
- From: Brian Brunswick <bdb eidos co uk>
- To: GTK User-List <gtk-list redhat com>
- Subject: Re: [gtk-list] Re: widgets not absorbing events properly
- Date: Thu, 7 Jan 1999 19:24:51 +0000 (GMT)
In <URL:news:local.gtk> on Thu 07 Jan, Andreas Tille wrote:
> On Thu, 7 Jan 1999, Brian Brunswick wrote:
>
> > What might become a problem is that most gtk widgets don't seem to properly
> > consume events that they have handled, eg clicks and key presses, meaning
> > that default actions attached to the top level window for these happen
> > as well as the per widget binding. Given that I want to have single key
> > shortcuts for a window that has text widgets in it, this needs fixing!
> You can set an event mask for each widget.
>
That doesn't help me really. I want the text widget to only swallow
key presses that its used, but let others through.
Theres no reason that function key shortcuts shouldn't happen while
the cursor is in the widget, but the letter a shortcut definately shouldn't
if its also been typed into the text.
Similarly, if a button click has been used to activate a button it should
be absorbed, but if its the wrong button for that widget, it should get
passed through to be used for a context menu for the whole window, say.
--
The past is a fading dream, the future mere speculation - live for the moment
Brian Brunswick bdb@eidos.co.uk Disclaimer !Shortsig! <SPAM_ACCEPT="NONE">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]