Re: [Muine] insert menu items to launch plugin



Cool :)

I would place it in the ExtraFileActions placeholder in the file menu. 

It works something like this:

ActionEntry [] action_entries = new ActionEntry [] {
	new ActionEntry ("MyAction", MyStockIcon, "MyLabel", 
            "MyShortcut", null, new EventHandler (OnMyAction))
};

action_group = new ActionGroup ("MyActionGroupName");
action_group.Add (action_entries);

UIManager.InsertActionGroup (action_group, -1);

UIManager.AddUI (UIManager.NewMergeId (), 
                 "/MenuBar/FileMenu/ExtraFileActions", "MyName",
                 "MyAction", UIManagerItemType.MenuItem, false);

HTH,

Jorn


On Tue, 2005-01-04 at 14:03 +0000, Hasan Veldstra wrote:
> I'm writing a simple plugin to export playlist
> to HTML. I've done the HTML creation code but I can't
> figure out how to use the UIManager provided by PlayerInterface
> to add a menu item that would launch the plugin.
> Jorn, or somebody else, it'd be great if you could
> provide a snippet of code to show how to do that.
> Also, I was wondering where should the menu item
> go? Tools (or something similar) or the Playlist
> menu?
> 
> cheers
> 
> Hasan
> 
> _______________________________________________
> muine-list mailing list
> muine-list gnome org
> http://mail.gnome.org/mailman/listinfo/muine-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]