]> Pileus Git - ~andy/gtk/commit
button: don't be active when holding the mouse button outside the bounds
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 17 Jan 2012 22:14:23 +0000 (17:14 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 1 Mar 2012 20:57:55 +0000 (15:57 -0500)
commit5495152e30f60fed3949ba1cfe7b6b06dc13fe53
tree9ec5bb576879e3ccb98a2003d013f0d8a37a9e02
parentab688333b4b60787fcd6b478ff2d548c176a7477
button: don't be active when holding the mouse button outside the bounds

GtkButton currently draws itself as active (pressed down) in case we're
pressing and holding the mouse pointer outside its bounds; this is
misleading though, since we won't activate the button unless the mouse
is released inside the button itself.
Fix this by only setting the ACTIVE state flag when the button is
actually pressed down.

https://bugzilla.gnome.org/show_bug.cgi?id=668141
gtk/gtkbutton.c