mirror of https://github.com/GNOME/gimp.git
app: Rename 'Save as Template' to 'Create Template'
Rename 'Save as Template' to 'Create Template' in the File menu.
This commit is contained in:
parent
46a1afebcd
commit
d3353f721b
|
@ -86,11 +86,11 @@ static const GimpActionEntry file_actions[] =
|
|||
G_CALLBACK (file_open_location_cmd_callback),
|
||||
GIMP_HELP_FILE_OPEN_LOCATION },
|
||||
|
||||
{ "file-save-as-template", NULL,
|
||||
NC_("file-action", "Save as _Template..."), NULL,
|
||||
{ "file-create-template", NULL,
|
||||
NC_("file-action", "Create _Template..."), NULL,
|
||||
NC_("file-action", "Create a new template from this image"),
|
||||
G_CALLBACK (file_save_template_cmd_callback),
|
||||
GIMP_HELP_FILE_SAVE_AS_TEMPLATE },
|
||||
G_CALLBACK (file_create_template_cmd_callback),
|
||||
GIMP_HELP_FILE_CREATE_TEMPLATE },
|
||||
|
||||
{ "file-revert", GTK_STOCK_REVERT_TO_SAVED,
|
||||
NC_("file-action", "Re_vert"), NULL,
|
||||
|
@ -261,7 +261,7 @@ file_actions_update (GimpActionGroup *group,
|
|||
SET_SENSITIVE ("file-revert", image && (GIMP_OBJECT (image)->name || export_to));
|
||||
SET_SENSITIVE ("file-export", image && drawable);
|
||||
SET_SENSITIVE ("file-export-to", export_to);
|
||||
SET_SENSITIVE ("file-save-as-template", image);
|
||||
SET_SENSITIVE ("file-create-template", image);
|
||||
|
||||
if (export_to)
|
||||
{
|
||||
|
|
|
@ -316,7 +316,7 @@ file_save_cmd_callback (GtkAction *action,
|
|||
}
|
||||
|
||||
void
|
||||
file_save_template_cmd_callback (GtkAction *action,
|
||||
file_create_template_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpDisplay *display;
|
||||
|
@ -326,7 +326,7 @@ file_save_template_cmd_callback (GtkAction *action,
|
|||
dialog = gimp_query_string_box (_("Create New Template"),
|
||||
display->shell,
|
||||
gimp_standard_help_func,
|
||||
GIMP_HELP_FILE_SAVE_AS_TEMPLATE,
|
||||
GIMP_HELP_FILE_CREATE_TEMPLATE,
|
||||
_("Enter a name for this template"),
|
||||
NULL,
|
||||
G_OBJECT (display->image), "disconnect",
|
||||
|
|
|
@ -32,7 +32,7 @@ void file_open_recent_cmd_callback (GtkAction *action,
|
|||
void file_save_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
gpointer data);
|
||||
void file_save_template_cmd_callback (GtkAction *action,
|
||||
void file_create_template_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
|
||||
void file_revert_cmd_callback (GtkAction *action,
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#define GIMP_HELP_FILE_REVERT "gimp-file-revert"
|
||||
#define GIMP_HELP_FILE_CLOSE "gimp-file-close"
|
||||
#define GIMP_HELP_FILE_CLOSE_ALL "gimp-file-close-all"
|
||||
#define GIMP_HELP_FILE_CREATE_TEMPLATE "gimp-file-save-as-template" /* Update string along with gimp-help-2 */
|
||||
#define GIMP_HELP_FILE_QUIT "gimp-file-quit"
|
||||
|
||||
#define GIMP_HELP_EDIT_UNDO "gimp-edit-undo"
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<menuitem action="file-export" />
|
||||
<menuitem action="file-export-to" />
|
||||
</placeholder>
|
||||
<menuitem action="file-save-as-template" />
|
||||
<menuitem action="file-create-template" />
|
||||
<separator />
|
||||
<placeholder name="Send" />
|
||||
<separator />
|
||||
|
|
Loading…
Reference in New Issue