Re: GtkButton doesn't always react on mouse clicks



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/2/2005 12:07 PM, Nickolai Dobrynin wrote:
I have a GtkButton in my application that gets deactivated ("greyed out",
via gtk_widget_set_sensitive) each time it gets clicked on and, at some
point later, re-activated. Here is the problem I have. Suppose I click on
the button (thereby deactivating it) and then do NOT move the mouse away
until the program re-activates the button back. Now, clicking on the button
has no effect at all until I move the mouse away and then move it back onto
the button. Once I've done this, the button lights up as usual, and
everything starts working fine.

Anybody please could tell me how to make the button that was just
re-activated receive the click signals without first having to move the
mouse away and then move it back on? (I am using gtk v. 2.4.11). Evidently,
the button fails to recognize that the mouse is over it at the time it
becomes sensitive again.

I've seen this problem before with gtk 2.8.x as well.  Seems like a
semi-obscure gtk bug.

        -brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFDaTax6XyW6VEeAnsRAqvPAJ0ZTE9eJ6mqubqNH6j0EtqMLUy/xQCfeVn+
git2VELNgN0YRzD5ENMTR5w=
=zlyG
-----END PGP SIGNATURE-----



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