Re: GIMP menu items (was: Discussion topics for GU4DEC BoF)



Hi,

Ole Laursen <olau@hardworking.dk> writes:

> Argh. Isn't the item factory just an easier way to setup the menus?

iirc, it is the only non-deprecated way to setup a menu.

> But with this interface, you're trading convenience for safety and
> extra work for us. Why wouldn't
> 
>   create_menu("/Edit", _("_Edit"));
> 
>   // ...
> 
>   create_item("/Edit", _("Stroke"));
> 
> be convenient enough? Or

that would be very inconvenient for us. The gettext tools do most of
the work for you anyway (if you use them wisely) so I'm not sure if
this is worth to be changed at all.

> Then main GIMP just need to setup the main menus. The plugins can
> setup items and submenus of their own.

the plug-ins don't have any access to the menus. They just register
their full menu path and the core takes care of creating any missing
menu branches. I surely don't want to change this since I don't want
to expose the menu system into the plug-in API and the plug-in API is
supposed to be as simple as possible.


Salut, Sven



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