added "Select->To Path" menu entry, using the right stock_id and help_id.

2003-08-25  Michael Natterer  <mitch@gimp.org>

	* app/gui/image-menu.c: added "Select->To Path" menu entry, using
	the right stock_id and help_id.

	* plug-ins/sel2path/sel2path.c: don't install a menu_path.
This commit is contained in:
Michael Natterer
2003-08-25 14:02:30 +00:00
committed by Michael Natterer
parent 160b91e1b9
commit 3d124a9da0
4 changed files with 42 additions and 25 deletions

View File

@ -1,3 +1,10 @@
2003-08-25 Michael Natterer <mitch@gimp.org>
* app/gui/image-menu.c: added "Select->To Path" menu entry, using
the right stock_id and help_id.
* plug-ins/sel2path/sel2path.c: don't install a menu_path.
2003-08-25 Michael Natterer <mitch@gimp.org>
* app/text/gimptext.[ch]: derive it from GimpObject and added

View File

@ -320,6 +320,11 @@ GimpItemFactoryEntry image_menu_entries[] =
"<StockItem>", GIMP_STOCK_SELECTION_TO_CHANNEL },
NULL,
GIMP_HELP_SELECTION_TO_CHANNEL, NULL },
{ { N_("/Select/To _Path"), NULL,
vectors_selection_to_vectors_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SELECTION_TO_PATH },
NULL,
GIMP_HELP_SELECTION_TO_PATH, NULL },
/* <Image>/View */
@ -1452,11 +1457,12 @@ image_menu_update (GtkItemFactory *item_factory,
SET_SENSITIVE ("/Select/Border...", lp && sel);
SET_SENSITIVE ("/Select/Toggle QuickMask", gdisp);
SET_SENSITIVE ("/Select/Save to Channel", lp && sel && !fs);
SET_SENSITIVE ("/Select/Save to Channel", sel && !fs);
SET_SENSITIVE ("/Select/To Path", sel && !fs);
/* View */
SET_SENSITIVE ("/View/New View", gdisp);
SET_SENSITIVE ("/View/New View", gdisp);
SET_SENSITIVE ("/View/Dot for Dot", gdisp);
SET_ACTIVE ("/View/Dot for Dot", gdisp && shell->dot_for_dot);
@ -1465,16 +1471,15 @@ image_menu_update (GtkItemFactory *item_factory,
SET_SENSITIVE ("/View/Zoom/Zoom In", gdisp);
SET_SENSITIVE ("/View/Zoom/Zoom to Fit Window", gdisp);
SET_SENSITIVE ("/View/Zoom/16:1", gdisp);
SET_SENSITIVE ("/View/Zoom/8:1", gdisp);
SET_SENSITIVE ("/View/Zoom/4:1", gdisp);
SET_SENSITIVE ("/View/Zoom/2:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:2", gdisp);
SET_SENSITIVE ("/View/Zoom/1:4", gdisp);
SET_SENSITIVE ("/View/Zoom/1:8", gdisp);
SET_SENSITIVE ("/View/Zoom/1:16", gdisp);
SET_SENSITIVE ("/View/Zoom/16:1", gdisp);
SET_SENSITIVE ("/View/Zoom/8:1", gdisp);
SET_SENSITIVE ("/View/Zoom/4:1", gdisp);
SET_SENSITIVE ("/View/Zoom/2:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:2", gdisp);
SET_SENSITIVE ("/View/Zoom/1:4", gdisp);
SET_SENSITIVE ("/View/Zoom/1:8", gdisp);
SET_SENSITIVE ("/View/Zoom/1:16", gdisp);
SET_SENSITIVE ("/View/Zoom/Other...", gdisp);
if (gdisp)

View File

@ -320,6 +320,11 @@ GimpItemFactoryEntry image_menu_entries[] =
"<StockItem>", GIMP_STOCK_SELECTION_TO_CHANNEL },
NULL,
GIMP_HELP_SELECTION_TO_CHANNEL, NULL },
{ { N_("/Select/To _Path"), NULL,
vectors_selection_to_vectors_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SELECTION_TO_PATH },
NULL,
GIMP_HELP_SELECTION_TO_PATH, NULL },
/* <Image>/View */
@ -1452,11 +1457,12 @@ image_menu_update (GtkItemFactory *item_factory,
SET_SENSITIVE ("/Select/Border...", lp && sel);
SET_SENSITIVE ("/Select/Toggle QuickMask", gdisp);
SET_SENSITIVE ("/Select/Save to Channel", lp && sel && !fs);
SET_SENSITIVE ("/Select/Save to Channel", sel && !fs);
SET_SENSITIVE ("/Select/To Path", sel && !fs);
/* View */
SET_SENSITIVE ("/View/New View", gdisp);
SET_SENSITIVE ("/View/New View", gdisp);
SET_SENSITIVE ("/View/Dot for Dot", gdisp);
SET_ACTIVE ("/View/Dot for Dot", gdisp && shell->dot_for_dot);
@ -1465,16 +1471,15 @@ image_menu_update (GtkItemFactory *item_factory,
SET_SENSITIVE ("/View/Zoom/Zoom In", gdisp);
SET_SENSITIVE ("/View/Zoom/Zoom to Fit Window", gdisp);
SET_SENSITIVE ("/View/Zoom/16:1", gdisp);
SET_SENSITIVE ("/View/Zoom/8:1", gdisp);
SET_SENSITIVE ("/View/Zoom/4:1", gdisp);
SET_SENSITIVE ("/View/Zoom/2:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:2", gdisp);
SET_SENSITIVE ("/View/Zoom/1:4", gdisp);
SET_SENSITIVE ("/View/Zoom/1:8", gdisp);
SET_SENSITIVE ("/View/Zoom/1:16", gdisp);
SET_SENSITIVE ("/View/Zoom/16:1", gdisp);
SET_SENSITIVE ("/View/Zoom/8:1", gdisp);
SET_SENSITIVE ("/View/Zoom/4:1", gdisp);
SET_SENSITIVE ("/View/Zoom/2:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:1", gdisp);
SET_SENSITIVE ("/View/Zoom/1:2", gdisp);
SET_SENSITIVE ("/View/Zoom/1:4", gdisp);
SET_SENSITIVE ("/View/Zoom/1:8", gdisp);
SET_SENSITIVE ("/View/Zoom/1:16", gdisp);
SET_SENSITIVE ("/View/Zoom/Other...", gdisp);
if (gdisp)

View File

@ -130,7 +130,7 @@ query (void)
"Andy Thomas",
"Andy Thomas",
"1999",
N_("<Image>/Select/To _Path"),
NULL,
"RGB*, INDEXED*, GRAY*",
GIMP_PLUGIN,
G_N_ELEMENTS (args), 0,