On Thu, 20 Dec 2007 20:55:15 +0100, Sven Neumann <[EMAIL PROTECTED]> wrote:

> Hi,
>
> On Thu, 2007-12-20 at 20:19 +0100, Lionel Tarazon Alcocer wrote:
>
>> At http://prhlt.iti.es/ we are developing a GIMP plug-in which installs  
>> various
>> procedures under <Image>/giDoc/. By default the registered procedures  
>> appear in
>> alphabetical order under this menu.
>>
>> Is there a way of controlling the position they occupie instead of  
>> having them
>> in alphabetical order?
>
> No, there is currently no way to control the order in which menu items
> added by plug-ins appear inside a submenu. Perhaps this could be added
> but I can't currently imagine how an API for this would look like.
>
>
> Sven
>

What does the current API look like?

It would seem easy enough to add an extra arguement to indicate the  
required position in the menu list. A value of minus one could indicate a  
default placement, be that alphabetical or add-to-the-end.

An additional interface to query the current menu length would seem useful  
in this context:

int gimp_get_menu_length(menuID)


regards.




   .*.
   /V\
  (/ \)
  (   )
  ^^_^^
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to