Author: johannes Date: 2007-05-26 10:26:15 -0500 (Sat, 26 May 2007) New Revision: 9630
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py Log: Use special ID's on wxMac only Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py =================================================================== --- trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py 2007-05-25 17:01:18 UTC (rev 9629) +++ trunk/gnue-forms/src/uidrivers/wx26/widgets/menuitem.py 2007-05-26 15:26:15 UTC (rev 9630) @@ -66,11 +66,14 @@ # wx.ID_EXIT and wx.ID_PREFERENCES will get rearranged into the # Application menu (according to Apples HIG). On all other # platforms it does nothing special with these menu items. - if self._gfObject.name == '__show_about__': - mid = wx.ID_ABOUT + if 'wxMac' in wx.PlatformInfo: + if self._gfObject.name == '__show_about__': + mid = wx.ID_ABOUT - elif self._gfObject.name == '__close__': - mid = wx.ID_EXIT + elif self._gfObject.name == '__close__': + mid = wx.ID_EXIT + else: + mid = wx.ID_ANY else: mid = wx.ID_ANY _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue