RSS/Atom feed Twitter
Site is read-only, email is disabled

2.6 plugin menu changes

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

2.6 plugin menu changes Alesh Slovak 19 Feb 02:15
  2.6 plugin menu changes Rob Antonishen 19 Feb 02:33
   2.6 plugin menu changes Alesh Slovak 19 Feb 02:38
    2.6 plugin menu changes Rob Antonishen 19 Feb 03:56
     2.6 plugin menu changes Alesh Slovak 19 Feb 04:02
  2.6 plugin menu changes saulgoode@flashingtwelve.brickfilms.com 19 Feb 10:30
Alesh Slovak
2009-02-19 02:15:53 UTC (almost 16 years ago)

2.6 plugin menu changes

Hi,

I am a developer working on scanning software which provides a Gimp plugin interface. As of Gimp 2.6, our plugin is placed in the wrong location in the menu, and is grayed out until the user creates or opens a new document.

I have been unable to find any up to date documentation or anything documenting the changes to the plugin API for 2.6.

I have been able to figure out how to place the menu entry under the File->Create menu (used to be Acquire) by looking at the code to the screenshot plugin. However, I still have the problem that my menu entry is grayed out until a new document is created or opened.

I don't quite fancy trying to figure this out by trial and error, so I thought I'd post here to see if anyone happens to know how to fix this.

As a sidenote I was wondering why the screenshot plugin defines its menu entry as "/File/Create/Acquire", but the menu entry shows up as File->Create->Screenshot. Why is the extra "Acquire" there?

Thanks in advance.

Rob Antonishen
2009-02-19 02:33:45 UTC (almost 16 years ago)

2.6 plugin menu changes

I believe it is tied to the image type in your plugin declaration. Instead of "RGB*" (or whatever) set it to "".

The "problem" is that with no image, it doesn't have a image type and so fails the check and is greyed out.

-Rob A>

alesh.slovak@avasys.jp http://avasys.jp

Alesh Slovak
2009-02-19 02:38:40 UTC (almost 16 years ago)

2.6 plugin menu changes

I believe it is tied to the image type in your plugin declaration. Instead of "RGB*" (or whatever) set it to "".

Thanks for the tip. But won't setting the image type to "" cause other problems?

Rob Antonishen
2009-02-19 03:56:55 UTC (almost 16 years ago)

2.6 plugin menu changes

AFAIK, If your plugin can run with no image (i.e. It creates an image) then it doesn't matter.

If it can also operate on an existing image, you will have to ensure it either has the proper checks or conversions coded in.

-Rob A>

On 2/18/09, Alesh Slovak wrote:

I believe it is tied to the image type in your plugin declaration. Instead of "RGB*" (or whatever) set it to "".

Thanks for the tip. But won't setting the image type to "" cause other problems?

--
Alesh Slovak Linux Team -- AVASYS Corporation alesh.slovak@avasys.jp http://avasys.jp

Alesh Slovak
2009-02-19 04:02:17 UTC (almost 16 years ago)

2.6 plugin menu changes

AFAIK, If your plugin can run with no image (i.e. It creates an image) then it doesn't matter.

OK, that's what I thought.

Thanks a lot.

saulgoode@flashingtwelve.brickfilms.com
2009-02-19 10:30:51 UTC (almost 16 years ago)

2.6 plugin menu changes

Quoting Alesh Slovak :

As a sidenote I was wondering why the screenshot plugin defines its menu entry as "/File/Create/Acquire", but the menu entry shows up as File->Create->Screenshot. Why is the extra "Acquire" there?

The "Acquire" portion of the Screenshot plug-in's menu registration specifies the menu subgroup to which the command is added. These menu subgroups (called "placeholders" in GIMP terminology) are typically separated by the menu separator lines in the menu/submenu. Within a placeholder's group, menu commands are dynamically sorted in alphabetical order employing the current locale translation, but the placeholder groups' menu positions are fixed relative to each other.

To my understanding, extensive documentation does not yet exist on GIMP's placeholders, nor is their mechanism accessible through the Procedural DataBase (i.e., you can't create new placeholder groups from a plug-in). You can find out the existing placeholder groups by grepping the XML source in the menus directory (http://svn.gnome.org/viewvc/gimp/branches/gimp-2-6/menus/).

I imagine the GIMP developers would welcome contributions of further documentation and PDB bindings for menu placeholders.