Re: [gtk-list] Re: Double-clicking in CLists (Gtk-perl)



Paul Barton-Davis wrote:
> 
[...]
> >I just think there ought to be an easier way to trap double-clicks.
> 
> if (ev->type == GDK_2BUTTON_PRESS) {
>    ...
> }
> 
Or in perl using the event hash that is supplied to the signal handler for
button_press_event as $e:

  if ($e->{'type'} eq '2button_press') { ...

HTH, Dermot




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