Author: bugman
Date: Mon May 7 23:28:08 2012
New Revision: 16082
URL: http://svn.gna.org/viewcvs/relax?rev=16082&view=rev
Log:
The auto-generated user function menu is now correctly sorted.
Modified:
branches/uf_redesign/gui/menu.py
Modified: branches/uf_redesign/gui/menu.py
URL:
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/menu.py?rev=16082&r1=16081&r2=16082&view=diff
==============================================================================
--- branches/uf_redesign/gui/menu.py (original)
+++ branches/uf_redesign/gui/menu.py Mon May 7 23:28:08 2012
@@ -294,6 +294,12 @@
# No sub menu.
else:
+ # Add the last sub menu.
+ if class_item != None:
+ menu.AppendItem(class_item)
+ class_item = None
+
+ # The menu item.
uf_id = wx.NewId()
menu.AppendItem(build_menu_item(menu, id=uf_id,
text=data.menu_text, icon=fetch_icon(data.gui_icon, size='16x16')))
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits