Author: reinhard
Date: 2009-10-22 13:22:44 -0500 (Thu, 22 Oct 2009)
New Revision: 9995
Modified:
trunk/gnue-forms/src/GFObjects/commanders.py
Log:
Never show disabled toolbar buttons in "pressed in" position.
Modified: trunk/gnue-forms/src/GFObjects/commanders.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/commanders.py 2009-10-22 18:21:57 UTC
(rev 9994)
+++ trunk/gnue-forms/src/GFObjects/commanders.py 2009-10-22 18:22:44 UTC
(rev 9995)
@@ -257,7 +257,10 @@
# For toggle commanders, the state can implicitly be changed by
# enabling one of the actions and disabling the other one.
if self.__action is not None and self.__action_off is not None:
- if self.__action.enabled and not self.__action_off.enabled:
+ # If the "off" action is disabled, never show the button pressed
+ # in. If the "on" action is also disabled, the button will be
+ # greyed out, but sill in not-pressed-in state.
+ if not self.__action_off.enabled:
if self.state:
self.state = False
if self.uiWidget is not None:
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue