Re: GtkButton problem

>> it should be pretty simple to try. i've run into several problems
>> trying to do certain things from a button_press_event, even though
>> that seemed like the logical place to do them.
>the logical and correct way to deal with buttons is to connect to the 
>"clicked" signal. 

I didn't say using a GtkButton.

In general, handling anything from button_press_event is potentially
very tricky. X and thus GDK and thus GTK go to some length to ensure
that the same widget that receives an X event corresponding to the
button press also gets the one corresponding to the button release. If
you do things to make this hard (or impossible), things can get very

This applies to DrawingAreas, Menus and many other widgets, which have
no "clicked" event.


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