As far as I'm aware you'll have to change the source and recompile, dont think the menus.xml stuff touches the context menu. The main code for it is in src\ui\context-menu.cpp
Adding extra item related ones is pretty straight forward, just add another block like this to sp_item_menu:

/* Do something custom */
w = gtk_menu_item_new_with_mnemonic(_("_Do Something"));   
gtk_object_set_data(GTK_OBJECT(w), "desktop", desktop);
gtk_signal_connect(GTK_OBJECT(w), "activate", GTK_SIGNAL_FUNC(sp_item_do_some_stuff), item);
gtk_widget_show(w);
gtk_menu_append(GTK_MENU(m), w);

then create the funtion sp_item_do_some_stuff that does whatever.
just add its declaration to the list above sp_item_menu
ie

static void sp_item_do_some_stuff(GtkMenuItem *menuitem, SPItem *item);

Hope that helps

Sim

On 12/20/07, PilarPP <ppalominos@...155...> wrote:

I would like to know if it's possible to modify the options of the context
menu when
there is an element selected.
I would like to add a new custom option. I would like to know the way to do
it.
--
View this message in context: http://www.nabble.com/modify-context-menu-tp14434682p14434682.html
Sent from the Inkscape - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user