Re: Simple Gtk app
- From: Carlos Pereira <carlos pehoe civil ist utl pt>
- To: gtk-app-devel-list gnome org
- Subject: Re: Simple Gtk app
- Date: Wed, 25 Oct 2000 17:19:35 +0100
but I don't know what the "gtk_widget_set[add]_events" part does?
gtk_widget_set_events and gtk_widget_add_events allow you to
change the list of events that Gtk is monitoring. Basically
the more usual events are set up by default, the others must
be asked explicitly.
You should try to monitor only the events that you are really
using, to economise cpu and mem X resources, so for example,
if you don't need release key events, don't add them to the mask.
You might wish to play with xev, a program that comes with
X Window system, that describes the X events that are occurring.
Just type: xev <Return>
] [Thread Prev