Re: GtkButton doesn't always react on mouse clicks
- From: Billy Biggs <vektor dumbterm net>
- To: "Brian J. Tarricone" <bjt23 cornell edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkButton doesn't always react on mouse clicks
- Date: Wed, 2 Nov 2005 21:05:41 -0600
Brian J. Tarricone (bjt23 cornell edu):
On 11/2/2005 12:07 PM, Nickolai Dobrynin wrote:
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.
http://bugzilla.gnome.org/show_bug.cgi?id=56070
A workaround is to hide/show the widget.
gtk_widget_set_sensitive (button, TRUE);
gtk_widget_hide (button);
gtk_widget_show (button);
Although depending on the situation this workaround might not work so
well for you.
-Billy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]