updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / pallavi / menubar.patch
blob8dfc0a388ec610ccfcab68f83219c0a7715796e9
1 *** pallavi/plugins/SimpleMenubar.py.orig 2010-04-12 12:59:40.000000000 +0200
2 --- pallavi/plugins/SimpleMenubar.py 2010-04-12 13:00:27.000000000 +0200
3 ***************
4 *** 164,170 ****
5 menu = None
6 try:
7 if submenuname == None:
8 ! menu = menubar.GetMenu(menubar.FindMenu(menuname))
9 else:
10 #This is a long drawn out way of getting a submenu from a menu.
11 #Is there any easier way to do this?
12 --- 164,171 ----
13 menu = None
14 try:
15 if submenuname == None:
16 ! if menubar.FindMenu(menuname) >= 0:
17 ! menu = menubar.GetMenu(menubar.FindMenu(menuname))
18 else:
19 #This is a long drawn out way of getting a submenu from a menu.
20 #Is there any easier way to do this?
21 ***************
22 *** 184,187 ****
23 if menu == None:
24 menu = wx.Menu()
25 menubar.Append(menu, menuname)
26 ! return menu
27 \ No newline at end of file
28 --- 185,188 ----
29 if menu == None:
30 menu = wx.Menu()
31 menubar.Append(menu, menuname)
32 ! return menu