Well, actually, the piece of code that you gave works fine and well. But in my case, i wanted to get the label of the NautilusMenuItem, and I didn't find a way to do this. There is AFAIK no way to get the details of a menu once it's set. If there is, this is the solution I am looking for and there is no need for this patch. But then, maybe the header should be documented concerning this matter.
One other point that made me thinks this was a bug was this comment (in the nautilus-menu.h file). So the developer want the user to know what is in the MenuItem, but I didn't find any obvious way to get them once set. /* NautilusMenuItem has the following properties: * name (string) - the identifier for the menu item * label (string) - the user-visible label of the menu item * tip (string) - the tooltip of the menu item * icon (string) - the name of the icon to display in the menu item * sensitive (boolean) - whether the menu item is sensitive or not * priority (boolean) - used for toolbar items, whether to show priority * text. * menu (NautilusMenu) - The menu belonging to this item. May be null. */ -- NautilusMenuItemDetails not defined in header file https://bugs.launchpad.net/bugs/188288 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs