[gimp: 15/27] app: Rename 'Save as Template' to 'Create Template'
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp: 15/27] app: Rename 'Save as Template' to 'Create Template'
- Date: Sat, 16 May 2009 07:25:37 -0400 (EDT)
commit d3353f721b36213129aef7c7574a312cefe30f45
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Apr 26 08:24:02 2009 +0200
app: Rename 'Save as Template' to 'Create Template'
Rename 'Save as Template' to 'Create Template' in the File menu.
---
app/actions/file-actions.c | 22 +++++++++++-----------
app/actions/file-commands.c | 6 +++---
app/actions/file-commands.h | 2 +-
app/widgets/gimphelp-ids.h | 1 +
menus/image-menu.xml.in | 2 +-
5 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/app/actions/file-actions.c b/app/actions/file-actions.c
index 7efe24c..aa256ff 100644
--- a/app/actions/file-actions.c
+++ b/app/actions/file-actions.c
@@ -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,
@@ -255,13 +255,13 @@ file_actions_update (GimpActionGroup *group,
#define SET_SENSITIVE(action,condition) \
gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
- SET_SENSITIVE ("file-save", image && drawable);
- SET_SENSITIVE ("file-save-as", image && drawable);
- SET_SENSITIVE ("file-save-a-copy", image && drawable);
- 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-save", image && drawable);
+ SET_SENSITIVE ("file-save-as", image && drawable);
+ SET_SENSITIVE ("file-save-a-copy", image && drawable);
+ 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-create-template", image);
if (export_to)
{
diff --git a/app/actions/file-commands.c b/app/actions/file-commands.c
index 0e2770d..0193b49 100644
--- a/app/actions/file-commands.c
+++ b/app/actions/file-commands.c
@@ -316,8 +316,8 @@ file_save_cmd_callback (GtkAction *action,
}
void
-file_save_template_cmd_callback (GtkAction *action,
- gpointer data)
+file_create_template_cmd_callback (GtkAction *action,
+ gpointer data)
{
GimpDisplay *display;
GtkWidget *dialog;
@@ -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",
diff --git a/app/actions/file-commands.h b/app/actions/file-commands.h
index 66437ec..95ef997 100644
--- a/app/actions/file-commands.h
+++ b/app/actions/file-commands.h
@@ -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,
diff --git a/app/widgets/gimphelp-ids.h b/app/widgets/gimphelp-ids.h
index 22ebe0e..3966e2c 100644
--- a/app/widgets/gimphelp-ids.h
+++ b/app/widgets/gimphelp-ids.h
@@ -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"
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index ffd13a1..b8e8fc4 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -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 />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]