Re: Plugin putting an icon on the toolbar

From: Robert Staudinger <robert.staudinger_at_gmail.com>
Date: Tue Aug 30 2005 - 10:24:21 CEST

On 8/30/05, Steve D. Perkins <lists@steveperkins.net> wrote:

[...]

> I'm fine with using a custom pull-down menu with checkbox toggle
> item as an interim step until the toolbar stuff is smoothed out in 2.6
> or whenever. However, I really haven't seen any plugin code making use
> of THAT functionality to look over. I looked at the menu items built-in
> to the core product, but they all seem to go through the .po files for
> retrieving their text strings... and I assume editing those won't be an
> option for a plugin. Does anyone have any sample code of a plugin
> creating its own menu?

Most plugins add themselves to the toplevel "Tools" (and the context)
menu. Look e.g. in the wikipedia plugin which is rather small and
straight forward. As for how to create a check-menu you will have to
read the main source, e.g. the toolbar-toggling menus.

HTH,
Rob
Received on Tue Aug 30 10:25:36 2005

This archive was generated by hypermail 2.1.8 : Tue Aug 30 2005 - 10:25:36 CEST