[gnue] r9615 - trunk/gnue-forms/src

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-05-24 08:25:08 -0500 (Thu, 24 May 2007)
New Revision: 9615

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Remove extra and help menus from form tree after they have been merged into the
main menu.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py	2007-05-24 08:46:51 UTC (rev 9614)
+++ trunk/gnue-forms/src/GFForm.py	2007-05-24 13:25:08 UTC (rev 9615)
@@ -310,8 +310,12 @@
         help_menu = self.findChildNamed('__help_menu__', 'GFMenu')
         if extra_menu:
             main_menu.merge(extra_menu)
+            extra_menu.setParent(None)
+            self._children.remove(extra_menu)
         if help_menu:
             main_menu.merge(help_menu)
+            help_menu.setParent(None)
+            self._children.remove(help_menu)
 
         self.phaseInit()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.