Author: reinhard
Date: 2006-10-18 16:34:09 -0500 (Wed, 18 Oct 2006)
New Revision: 8857
Modified:
trunk/gnue-forms/src/GFForm.py
Log:
Switch to the page with the vetoing entry if an entry vetoes to lose the focus.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-10-18 20:26:25 UTC (rev 8856)
+++ trunk/gnue-forms/src/GFForm.py 2006-10-18 21:34:09 UTC (rev 8857)
@@ -338,6 +338,9 @@
# are captured until the value is corrected.
# FIXME: if there is a way (on some UIs) to veto the focus change
# on UI layer, this should be the prefered method
+ if self._currentPage != self._currentEntry._page:
+ self._currentPage = self._currentEntry._page
+ self.uiWidget._ui_goto_page_(self._currentPage.uiWidget)
self._currentEntry.ui_focus_in()
if hasattr(self._currentEntry, '_displayHandler'):
self._currentEntry._displayHandler.generateRefreshEvent()
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue