diff --git a/app/actions/channels-commands.c b/app/actions/channels-commands.c index 746633bc1f..b6234f71b3 100644 --- a/app/actions/channels-commands.c +++ b/app/actions/channels-commands.c @@ -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))); diff --git a/app/actions/layers-commands.c b/app/actions/layers-commands.c index d52b71a9a6..d2cfa918cb 100644 --- a/app/actions/layers-commands.c +++ b/app/actions/layers-commands.c @@ -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))); diff --git a/app/actions/vectors-commands.c b/app/actions/vectors-commands.c index 58ef12d298..29bf4c456d 100644 --- a/app/actions/vectors-commands.c +++ b/app/actions/vectors-commands.c @@ -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); diff --git a/app/widgets/gimpchanneltreeview.c b/app/widgets/gimpchanneltreeview.c index 9e961f076d..be6adbca41 100644 --- a/app/widgets/gimpchanneltreeview.c +++ b/app/widgets/gimpchanneltreeview.c @@ -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); diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c index 6bec6e770a..b99c1424c8 100644 --- a/app/widgets/gimplayertreeview.c +++ b/app/widgets/gimplayertreeview.c @@ -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); diff --git a/app/widgets/gimpvectorstreeview.c b/app/widgets/gimpvectorstreeview.c index 18dda94d9c..8c0a176c0b 100644 --- a/app/widgets/gimpvectorstreeview.c +++ b/app/widgets/gimpvectorstreeview.c @@ -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);