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 440026 - Missing wrapper for NautilusMenu
Missing wrapper for NautilusMenu
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
Git Master
Other All
: Normal enhancement
: ---
Assigned To: Johan (not receiving bugmail) Dahlin
Johan (not receiving bugmail) Dahlin
Depends on:
Blocks:
 
 
Reported: 2007-05-20 21:06 UTC by Lukáš Lalinský
Modified: 2008-01-11 14:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Partial implementation of NautilusMenu wrappers. (1.79 KB, patch)
2007-05-20 21:08 UTC, Lukáš Lalinský
none Details | Review
Same implementation but with the existing convention (2.62 KB, patch)
2007-06-12 22:17 UTC, Sylvain Baubeau
none Details | Review
Example MenuProvider (851 bytes, text/plain)
2007-08-03 18:35 UTC, Erik Wien
  Details

Description Lukáš Lalinský 2007-05-20 21:06:57 UTC
libnautilus supports submenus since 0.15 (?), would be nice to have wrappers for these objects in nautilut-python.

The attached patch implementes wrappers for nautilus_menu_get_type, nautilus_menu_new, nautilus_menu_append_item and nautilus_menu_item_set_submenu.
Comment 1 Lukáš Lalinský 2007-05-20 21:08:17 UTC
Created attachment 88510 [details] [review]
Partial implementation of NautilusMenu wrappers.
Comment 2 Sylvain Baubeau 2007-06-12 22:17:34 UTC
Created attachment 89845 [details] [review]
Same implementation but with the existing convention

Also modify nautilus-python.h and nautilusmodule.c
Comment 3 Johan (not receiving bugmail) Dahlin 2007-06-12 22:27:19 UTC
(In reply to comment #2)
> Created an attachment (id=89845) [edit]
> Same implementation but with the existing convention
> 
> Also modify nautilus-python.h and nautilusmodule.c
> 

Looks good, can you include a simple example too?
Comment 4 Erik Wien 2007-08-03 18:35:40 UTC
Created attachment 93052 [details]
Example MenuProvider

(In reply to comment #2)
> Created an attachment (id=89845) [edit]
> Same implementation but with the existing convention
> 
> Also modify nautilus-python.h and nautilusmodule.c
> 
Just tried this patch, and it it works great except a MenuItem's sub-menu does not show up if it's returned from get_background_items(). I'm not sure if this is a problem with nautilus-python, or if it goes deeper than that.

Attached is an example MenuProvider demonstrating the problem.
Comment 5 John Stowers 2007-10-25 09:08:03 UTC
Im looking to use this functionality in Conduit, so it would be good if this was committed sometime....
Comment 6 Johan (not receiving bugmail) Dahlin 2008-01-11 14:31:43 UTC
2008-01-11  Johan Dahlin  <johan@gnome.org>

	* examples/Makefile.am:
	* src/nautilus-python.c: (nautilus_python_init_python):
	* src/nautilus-python.h:
	* src/nautilus.defs:
	* examples/submenu.py:
	Add Menu wrapper which makes it possible to implement submenus.
	#440026, Lukáš Lalinský, Sylvain Baubeau, Erik Wien