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

Re: problems: Re: new color selection widget



> a problem that i have is with the behavior of the button widget. when the
> eye dropper button is pressed, the pointer is grabbed. after the user
> grabs a color, the pointer is ungrabbed. here's the problem: when the user
> presses button 1 to grab the color, the button depresses when the
> pointer moves over it from then on. using button 2 instead causes the
> button to return to normal. does this have to do with using
> "button_press_event" instead of "clicked" to catch the color selection?

Yes, thats what I was talking about.
Whenever you move the mouse over the button it depresses until you click the
mouse button somewhere in the window (to register a button_release_event)
which then detects that the button isn't depressed.
I'm not really sure how to fix it, but I think you may need to use
gtk_widget_ungrab () or gtk_grab_remove () (I've not looked at the code, so
I don't know if you've used them or not - this is just me stabbing in the
dark)
Iain



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