Re: [gtk-list] Re: Accelerators again
- From: Nils Rennebarth <nils ipe uni-stuttgart de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Accelerators again
- Date: Thu, 12 Aug 1999 19:29:19 +0200
On Thu, Aug 12, 1999 at 05:13:35PM +0200, Joachim Klaehn wrote:
[good solution to the problem at hand]
I figured out something similar in the meantime. It did work somehow, but
not like I wanted it. Here is why:
The toplevel window contains a big area showing an image and above two
buttons for "quit" and "grab" and a GtkEntry where the user should type in
the filename. "q" really quit the application, but once I entered a
filename, q simply added a "q" to the filename. Ok, so lets change q to
Alt-Q or Ctrl-Q. But those are absorbed by the Entry widget, as well as the
<Return> key.
What I really would like to do is:
- any normal character as well as the arrow keys, Backspace etc
should go to the Entry widget (this probably means, it should get focus
on start, currently the user needs to click in this area before entering
a filename
- Ctrl-Q should quit the application
- <Return> should call a separate function that first performs the "grab"
action and then updates the filename.
So I need to modify the key events, that the Entry widget sees. How?
Nils
--
Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works. --unknown source
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]