small hack that strips the ellipses from the "Repeat" and "Re-Show" menu
2002-02-11 Michael Natterer <mitch@gimp.org> * app/plug-in/plug-in.c: small hack that strips the ellipses from the "Repeat" and "Re-Show" menu entries. * plug-ins/mosaic/mosaic.c: register under "Filters/Distorts", not "Filters/Render" because this plug-in changes the image and doesn't render something from scratch.
This commit is contained in:

committed by
Michael Natterer

parent
8421b79732
commit
12ef22e0c0
@ -1406,11 +1406,17 @@ plug_in_set_menu_sensitivity (GimpImageType type)
|
||||
if (last_plug_in && (last_plug_in == &(proc_def->db_info)))
|
||||
{
|
||||
gchar *basename;
|
||||
gchar *ellipses;
|
||||
gchar *repeat;
|
||||
gchar *reshow;
|
||||
|
||||
basename = g_path_get_basename (proc_def->menu_path);
|
||||
|
||||
ellipses = strstr (basename, "...");
|
||||
|
||||
if (ellipses && ellipses == (basename + strlen (basename) - 3))
|
||||
*ellipses = '\0';
|
||||
|
||||
repeat = g_strdup_printf (_("Repeat \"%s\""), basename);
|
||||
reshow = g_strdup_printf (_("Re-show \"%s\""), basename);
|
||||
|
||||
|
Reference in New Issue
Block a user