After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 166321 - Useful API that could be added for 2.12
Useful API that could be added for 2.12
Status: RESOLVED FIXED
Product: gnome-menus
Classification: Core
Component: libgnome-menu
git master
Other All
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on:
Blocks:
 
 
Reported: 2005-02-04 20:50 UTC by Vincent Untz
Modified: 2005-05-05 07:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2005-02-04 20:50:57 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);
Comment 1 Mark McLoughlin 2005-04-04 15:11:09 UTC
Do you have a patch, Vincent ? :-)
Comment 2 Mark McLoughlin 2005-05-05 07:44:11 UTC
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