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



>I've been looking into the Gtk+ reference manual on CList. I've been 
>loking for a way to trap doubleclicks on an element in a Clist. Is there 
>an easy way of trapping this?
>
>The only way I've found so far is to set a time-of-press variable when a 
>row is selected and compare this to the current time-of-press the next 
>time the row is selected.
>
>I just think there ought to be an easier way to trap double-clicks.

if (ev->type == GDK_2BUTTON_PRESS) {
   ...
}

--p



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