Re: [gtk-list] Re: another question



>>Ok, so my clist works now... I know how to connect a signal to a clist
>>row that captures "select_row", but what about double clicks?  See, I
>>would like to capture "select_row" events and display info about that
>>row in a statusbar, and on a double click, I would like open that row.
>>
>
>In the gtk+-1.2.6/gtk/gtkcalendar.c there is double clicking implemented
>and works. Hope this helps, but how to adjust it for a clist? 
>If you succeed i would be interested in the code....

You look at the event that triggered the select signal:

    if (ev && ev->type == GDK_2BUTTON_PRESS) ....

I think.

--p



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