From d3ff4c2976a757cfa9f20c23ec13eba962ee5771 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Thu, 5 Jul 2012 19:23:31 +0000 Subject: [PATCH] [elm] Fix widget inheritance images generation. Making interfaces to be displayed nicely both on overall tree and individual widget trees. SVN revision: 73377 --- legacy/elementary/doc/widget_hierarchy.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/doc/widget_hierarchy.py b/legacy/elementary/doc/widget_hierarchy.py index 49e9941e61..e2d2569e2f 100755 --- a/legacy/elementary/doc/widget_hierarchy.py +++ b/legacy/elementary/doc/widget_hierarchy.py @@ -16,23 +16,25 @@ def print_node(a, b, on_tree=False): if i_list: for iface in i_list: if_instance = a + iface + if_node_tuple = (if_instance, a) if on_tree else (a, if_instance) print '"%s" [label="",shape=circle,width=0.2]' % if_instance print '"%s" -> "%s" [label="%s", color=transparent]' \ % (if_instance, if_instance, iface) print '{rank="%s" "%s" -> "%s" [arrowhead="none"];}' \ - % (rank, if_instance, a) + % ((rank,) + if_node_tuple) i_list = ifaces.get(b) if i_list: for iface in i_list: if_instance = b + iface + if_node_tuple = (if_instance, b) if on_tree else (b, if_instance) print '"%s" [label="",shape=circle,width=0.2]' % if_instance print '"%s" -> "%s" [label="%s", color=transparent]' \ % (if_instance, if_instance, iface) print '{rank="%s" "%s" -> "%s" [arrowhead="none"];}' \ - % (rank, if_instance, b) + % ((rank,) + if_node_tuple) print '"%s" -> "%s"' % (a, b), '[arrowhead="empty"];' \ if on_tree else '[arrowtail="empty",dir=back];'