Re: Simple Gtk app

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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]