Fix right click in embeded menus

This commit is contained in:
Emmanuel Lepage Vallee 2013-12-31 16:13:11 -05:00
parent ace65ad586
commit 4e93654aa5
2 changed files with 2 additions and 0 deletions

View File

@ -215,6 +215,7 @@ end
local function add_embeded_menu(data,menu)
add_widget(data,menu._internal.layout)
menu._embeded_parent = data
end

View File

@ -21,6 +21,7 @@ local function setup_drawable(data)
local internal = data._internal
local get_map,set_map,private_data = internal.get_map,internal.set_map,internal.private_data
get_map.visible = function() return true end --Let the parent handle that
set_map.visible = function(v) if data._embeded_parent then data._embeded_parent.visible = v end end
if not data.layout then
data.layout = layout.vertical
end