mahvin wrote:
Kevin,
I noticed that I missed an arrow (The multi-directional arrow). Is there a specific code parameter for that arrow as well. I searched high and low trying to find it. I just think I am not identifying it correctly. [Edit: thought I found it on Github under pan, but that was not it, either.]
Hi Mahvin
That is the stock-id gimp-navigation:
stock["gimp-navigation"] =
{
{ "16/gimp-tool-move.png", *, *, "gtk-menu" },
{ "16/gimp-tool-move.png", *, *, * }
}
The way I went about finding that, is to look through the set of image files for the matching icon, then look through the corresponding gtkrc file.
However, to get to that point I've been rummaging through the source code, trying to match the IDs used in source, with the corresponding usage in the user-interface.
For example, I can see that the tool-tip for the menu item Window>>Dockable Dialogs>>Navigation is "Open the display navigation dialog", so I'd search through the source code files (*.c) for that string:
Searching for: Open the display navigation dialog
app\actions\dialogs-actions.c(96): NC_("dialogs-action", "Open the display navigation dialog"),
Found 1 occurrence(s) in 1 file(s)
Then looking at the file app\actions\dialogs-actions.c:
{ "dialogs-navigation", GIMP_STOCK_NAVIGATION, NC_("dialogs-action",
"Na_vigation"), NULL,
NC_("dialogs-action", "Open the display navigation dialog"),
"gimp-navigation-view",
GIMP_HELP_NAVIGATION_DIALOG },
So then I search for gimp-navigation-view, which leads to:
Searching for: gimp-navigation-view
app\actions\dialogs-actions.c(97): "gimp-navigation-view",
app\actions\view-commands.c(346): "gimp-navigation-view");
app\dialogs\dialogs.c(375): DOCKABLE ("gimp-navigation-view",
Found 3 occurrence(s) in 3 file(s)
And in app\dialogs\dialogs.c
/* display related */
DOCKABLE ("gimp-navigation-view",
N_("Navigation"), N_("Display Navigation"), GIMP_STOCK_NAVIGATION,
GIMP_HELP_NAVIGATION_DIALOG,
dialogs_navigation_editor_new, 0, FALSE),
And it's the GIMP_STOCK_NAVIGATION that's of interest (GIMP_STOCK_ are the icons)
So searching again, this time in the C header files (*.h)
Searching for: GIMP_STOCK_NAVIGATION
libgimpwidgets\gimpstock.h(199): #define GIMP_STOCK_NAVIGATION "gimp-navigation"
Found 1 occurrence(s) in 1 file(s)
So it's showing that the gtkrc stock id is "gimp-navigation"
Kevin