GNOME Bugzilla – Bug 166321
Useful API that could be added for 2.12
Last modified: 2005-05-05 07:44:11 UTC
Mark agreed in mail that these functions could be added for 2.12 MenuTree *menu_tree_directory_get_tree (MenuTreeDirectory *directory); char *menu_tree_get_menu_file (MenuTree *tree);
Do you have a patch, Vincent ? :-)
2005-05-05 Mark McLoughlin <mark@skynet.ie> Add gmenu_tree_directory_get_tree() and gmenu_tree_get_menu_file() as per bug #166321. * libmenu/gmenu-tree.[ch]: (gmenu_tree_get_menu_file): simple accessor to the menu_file passed to gmenu_tree_lookup (). (gmenu_tree_directory_get_tree): iterate back up through the tree until we find the root and return a ref on the associated tree. (gmenu_tree_directory_new), (gmenu_tree_directory_finalize): add a MenuTreeDirectoryRoot subclass of MenuTreeDirectory and keep a ref on the parent. * python/gmenu.c: (pygmenu_tree_directory_get_tree): impl gmenu.Directory.get_tree() (pygmenu_tree_directory_getattro): impl gmenu.Directory.tree (pygmenu_tree_get_menu_file): impl gmenu.Tree.get_menu_file() (pygmenu_tree_getattro): impl gmenu.Tree.menu_file