From 65a3865650d8b61f5156583c65edd62f413086a6 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 19 Sep 2015 15:07:43 +0000 Subject: [PATCH] parse submenu according to specs (same as section) git-svn-id: https://xpra.org/svn/Xpra/trunk@10673 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/tests/xpra/x11/get_gtk_menu.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/xpra/x11/get_gtk_menu.py b/src/tests/xpra/x11/get_gtk_menu.py index 3ed3a0a776..09e01f2701 100755 --- a/src/tests/xpra/x11/get_gtk_menu.py +++ b/src/tests/xpra/x11/get_gtk_menu.py @@ -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: