Author: reinhard
Date: 2007-01-11 13:56:13 -0600 (Thu, 11 Jan 2007)
New Revision: 9259
Modified:
trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py
Log:
Use toggling function only for toggle buttons.
Modified: trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py 2007-01-11 16:04:04 UTC
(rev 9258)
+++ trunk/gnue-forms/src/uidrivers/gtk2/ToolBar.py 2007-01-11 19:56:13 UTC
(rev 9259)
@@ -173,7 +173,7 @@
item.handler_block (item._toggleHandler)
try:
- if item is not None:
+ if isinstance(item, gtk.ToggleToolButton):
item.set_active (0)
finally:
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue