Re: [gtk-list] Double click in clist, and other questions



Allen Hyer wrote:
> 
> Hello,
>   I am having a small problem with the double click events on a clist.  I
> have registered my signal handler, and it gets called when you double click
> an item in the clist.  The problem is, it also gets called when you double
> click on the clist's scrollbar.  I haven't been able to find a way to test
> in the code wether the double click came from clicking an item or the
> scrollbar.  Any solution?

I have got a general question, how did you set up a double-click event ? 

I made a composition-widget, that checks the button_press event, and
there
i check the event->type for GDK_1BUTTON/GDK_2BUTTON(means 2 button
clicks...)
so i figure it out, exactly for the clist (NOT the scrollbars) - perhaps
it will help you, 

but anyway the problem for me is, that when i get a GDK_2BUTTON - i
first get
TWO TIMES a GDK_1BUTTON. :(

any suggestions ?

-- 
so long,
plex



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