Re: dbclk event on Canvas?



>     Could someone tell me how to capture a double-click event on the 
>  canvas - I seem to be getting two GDK_BUTTON_PRESS events, rather than 
>  a single GDK_2BUTTON_PRESS?

When Gtk gets two clicks that are near enough to each other in time,
it sends something like

	button_press
	button_release
	button_press
	2button_press
	button_release

So you should be getting the 2BUTTON_PRESS at some point.  Do not
assume that this ordering will stay the same; it may change in the
future.

  Federico



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