[Bug 56070] Can't click button after setting it sensitive.

gtk+ (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon May 21 20:14:46 UTC 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=56070

  gtk+ | gtk | Ver: 2.6.x




------- Comment #95 from Ed Catmur  2007-05-21 20:14 UTC -------
(In reply to comment #87)
> I don't understand why it has to be so unnecessarily complicated - why not just
> consider HIGHLIGHTED and SENSITIVE to be independent flags?

That would be difficult; HIGHLIGHTED (actually PRELIGHT) and (IN)SENSITIVE are
members of the GtkStateType[1] enumeration, and so PRELIGHT_INSENSITIVE would
be difficult to add (lots of theme code would need changing); moreover,
prelight state is set by the widget implementation, not by GTK+ core (i.e.
gtkmain.c) so the only way to tell a widget to transition to a prelight state
consistently with the logic as it stands is to send it a mouse-entered event. 
Take a look at gtk_button_enter_notify in gtkbutton.c, and note how it's the
widget itself that controls the SENSITIVE state.  Changing that at this stage,
when there are hundreds of GTK+ widgets outside the GTK tree, would be...
challenging.

1.
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Standard-Enumerations.html#GtkStateType


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=56070.



More information about the pkg-gnome-maintainers mailing list