CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <[EMAIL PROTECTED]> 04/11/06 19:06:47
Modified files:
src/widgets : button.cpp
Log message:
Prevent scrollbar crazyness by cleaning buttons on disabling/reenabling.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/button.cpp.diff?tr1=1.48&tr2=1.49&r1=text&r2=text
Patches:
Index: wesnoth/src/widgets/button.cpp
diff -u wesnoth/src/widgets/button.cpp:1.48 wesnoth/src/widgets/button.cpp:1.49
--- wesnoth/src/widgets/button.cpp:1.48 Sat Nov 6 13:13:16 2004
+++ wesnoth/src/widgets/button.cpp Sat Nov 6 19:06:47 2004
@@ -1,4 +1,4 @@
-/* $Id: button.cpp,v 1.48 2004/11/06 13:13:16 silene Exp $ */
+/* $Id: button.cpp,v 1.49 2004/11/06 19:06:47 silene Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -121,6 +121,8 @@
{
if (enabled_ != new_val) {
enabled_ = new_val;
+ state_ = NORMAL;
+ pressed_ = false;
set_dirty();
}
}