Skip to content

Commit

Permalink
parse submenu according to specs (same as section)
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@10673 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 19, 2015
1 parent a25ab08 commit 65a3865
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/xpra/x11/get_gtk_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@ def start_cb(*args):
for d in items:
menu = {}
section = d.get(":section")
submenu = d.get(":submenu")
if section:
#subscription, menu
menu[":section"] = ni(section[0]), ni(section[1])
elif section or submenu:
#subscription, menu
menu[":submenu"] = ni(section[0]), ni(section[1])
else:
for k in ("action", "label"):
if k in d:
Expand Down

0 comments on commit 65a3865

Please sign in to comment.