Get rid of the "New" in "New Layer", "New Channel" etc.

because they are "new" only once and then never again. Instead, simply
call new stuff "Layer", "Channel" and "Path", either by passing that
string explicitely, or by passing NULL so their class' default name
will be used.
This commit is contained in:
Michael Natterer 2010-02-07 19:39:48 +01:00
parent 3514271fde
commit b7d1be96e0
6 changed files with 11 additions and 11 deletions

View File

@ -113,7 +113,7 @@ channels_new_cmd_callback (GtkAction *action,
widget,
&channel_color,
channel_name ? channel_name :
_("New Channel"),
_("Channel"),
_("New Channel"),
"gimp-channel-new",
GIMP_STOCK_CHANNEL,
@ -159,8 +159,7 @@ channels_new_last_vals_cmd_callback (GtkAction *action,
_("New Channel"));
new_channel = gimp_channel_new (image, width, height,
channel_name ? channel_name :
_("New Channel"), &color);
channel_name, &color);
gimp_drawable_fill_by_type (GIMP_DRAWABLE (new_channel),
action_data_get_context (data),
@ -335,6 +334,7 @@ channels_new_channel_response (GtkWidget *widget,
if (channel_name)
g_free (channel_name);
channel_name =
g_strdup (gtk_entry_get_text (GTK_ENTRY (options->name_entry)));

View File

@ -247,7 +247,7 @@ layers_new_cmd_callback (GtkAction *action,
dialog = layer_options_dialog_new (image, NULL,
action_data_get_context (data),
widget,
layer_name ? layer_name : _("New Layer"),
layer_name ? layer_name : _("Layer"),
layer_fill_type,
_("New Layer"),
"gimp-layer-new",
@ -321,7 +321,7 @@ layers_new_last_vals_cmd_callback (GtkAction *action,
new_layer = gimp_layer_new (image, width, height,
gimp_image_base_type_with_alpha (image),
layer_name ? layer_name : _("New Layer"),
layer_name,
opacity, mode);
gimp_drawable_fill_by_type (GIMP_DRAWABLE (new_layer),
@ -981,6 +981,7 @@ layers_new_layer_response (GtkWidget *widget,
if (layer_name)
g_free (layer_name);
layer_name =
g_strdup (gtk_entry_get_text (GTK_ENTRY (dialog->name_entry)));

View File

@ -162,7 +162,7 @@ vectors_new_cmd_callback (GtkAction *action,
action_data_get_context (data),
widget,
vectors_name ? vectors_name :
_("New Path"),
_("Path"),
_("New Path"),
"gimp-vectors-new",
GIMP_STOCK_PATH,
@ -184,8 +184,7 @@ vectors_new_last_vals_cmd_callback (GtkAction *action,
GimpVectors *new_vectors;
return_if_no_image (image, data);
new_vectors = gimp_vectors_new (image,
vectors_name ? vectors_name : _("New Path"));
new_vectors = gimp_vectors_new (image, vectors_name);
gimp_image_add_vectors (image, new_vectors,
GIMP_IMAGE_ACTIVE_PARENT, -1, TRUE);

View File

@ -342,7 +342,7 @@ gimp_channel_tree_view_item_new (GimpImage *image)
new_channel = gimp_channel_new (image,
gimp_image_get_width (image),
gimp_image_get_height (image),
_("Empty Channel"), &color);
_("Channel"), &color);
gimp_image_add_channel (image, new_channel,
GIMP_IMAGE_ACTIVE_PARENT, -1, TRUE);

View File

@ -872,7 +872,7 @@ gimp_layer_tree_view_item_new (GimpImage *image)
gimp_image_get_width (image),
gimp_image_get_height (image),
gimp_image_base_type_with_alpha (image),
_("Empty Layer"), 1.0, GIMP_NORMAL_MODE);
NULL, 1.0, GIMP_NORMAL_MODE);
gimp_image_add_layer (image, new_layer,
GIMP_IMAGE_ACTIVE_PARENT, -1, TRUE);

View File

@ -259,7 +259,7 @@ gimp_vectors_tree_view_item_new (GimpImage *image)
{
GimpVectors *new_vectors;
new_vectors = gimp_vectors_new (image, _("Empty Path"));
new_vectors = gimp_vectors_new (image, _("Path"));
gimp_image_add_vectors (image, new_vectors,
GIMP_IMAGE_ACTIVE_PARENT, -1, TRUE);