After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 51501 - button press animation
button press animation
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-03-01 00:02 UTC by Havoc Pennington
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Havoc Pennington 2001-03-01 00:02:07 UTC
From Darin: "A side note. At some point I'd like to see a call that makes a
button
highlight as it it was pushed when it's being activated by a keystroke. This
helps make the connection between a key and a button much clearer. During
early Nautilus development, we worked on code to do this, which is in a
function called nautilus_gtk_button_auto_click (in
nautilus/libnautilus-extensions/nautilus-gtk-extensions.c), but we never
perfected it (see comments in the code for information about what's
imperfect)."
Comment 1 Owen Taylor 2001-03-06 15:51:36 UTC
Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkbutton.c: Add animation of activation by, on 
	activate, pressing the button, and adding a timeout that 
	releases the button after 250ms	or on key release and
	emits ::clicked. (#51501)

	* gtk/gtkdialog.c: Bit of a hack - for buttons in the
	action area, we connect to ::clicked instead of ::activate
	so the dialog stays up through the animation.