app/gui/channels-commands.c app/gui/layers-commands.c Make sure that

2004-03-17  Simon Budig  <simon@gimp.org>

	* app/gui/channels-commands.c
	* app/gui/layers-commands.c
	* app/gui/vectors-commands.c: Make sure that non-dialog creation
	of layer/channels/vectors properly updates the image. Also
	clear the new channel unconditionally.

	Change the name of the newly created item to not include the "Copy".
	It isn't a copy.

	* app/widgets/gimpitemtreeview.c: Don't try to assemble translated
	strings.

	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c: properly overwrite the
	tooltip for the "New" button.

	Sorry, some real string changes ahere, but they were necessary.
This commit is contained in:
Simon Budig 2004-03-17 16:12:21 +00:00 committed by Simon Budig
parent 4779fd4eb5
commit 23711e13d3
11 changed files with 44 additions and 22 deletions

View File

@ -1,3 +1,24 @@
2004-03-17 Simon Budig <simon@gimp.org>
* app/gui/channels-commands.c
* app/gui/layers-commands.c
* app/gui/vectors-commands.c: Make sure that non-dialog creation
of layer/channels/vectors properly updates the image. Also
clear the new channel unconditionally.
Change the name of the newly created item to not include the "Copy".
It isn't a copy.
* app/widgets/gimpitemtreeview.c: Don't try to assemble translated
strings.
* app/widgets/gimpchanneltreeview.c
* app/widgets/gimplayertreeview.c
* app/widgets/gimpvectorstreeview.c: properly overwrite the
tooltip for the "New" button.
Sorry, some real string changes ahere, but they were necessary.
2004-03-17 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable-transform.c

View File

@ -319,15 +319,15 @@ channels_new_channel_query (GimpImage *gimage,
new_channel = gimp_channel_new (gimage,
width, height,
_("Empty Channel Copy"),
_("Empty Channel"),
&color);
if (template)
gimp_drawable_fill_by_type (GIMP_DRAWABLE (new_channel),
gimp_get_user_context (gimage->gimp),
GIMP_TRANSPARENT_FILL);
gimp_image_add_channel (gimage, new_channel, -1);
gimp_image_flush (gimage);
gimp_image_undo_group_end (gimage);
return;

View File

@ -720,7 +720,7 @@ layers_new_layer_query (GimpImage *gimage,
width,
height,
gimp_image_base_type_with_alpha (gimage),
_("Empty Layer Copy"),
_("Empty Layer"),
opacity,
mode);
@ -733,6 +733,7 @@ layers_new_layer_query (GimpImage *gimage,
}
gimp_image_add_layer (gimage, new_layer, -1);
gimp_image_flush (gimage);
gimp_image_undo_group_end (gimage);
return;

View File

@ -441,9 +441,10 @@ vectors_new_vectors_query (GimpImage *gimage,
{
GimpVectors *new_vectors;
new_vectors = gimp_vectors_new (gimage, _("Empty Vectors Copy"));
new_vectors = gimp_vectors_new (gimage, _("Empty Path"));
gimp_image_add_vectors (gimage, new_vectors, -1);
gimp_display_flush (gimage);
return;
}

View File

@ -319,15 +319,15 @@ channels_new_channel_query (GimpImage *gimage,
new_channel = gimp_channel_new (gimage,
width, height,
_("Empty Channel Copy"),
_("Empty Channel"),
&color);
if (template)
gimp_drawable_fill_by_type (GIMP_DRAWABLE (new_channel),
gimp_get_user_context (gimage->gimp),
GIMP_TRANSPARENT_FILL);
gimp_image_add_channel (gimage, new_channel, -1);
gimp_image_flush (gimage);
gimp_image_undo_group_end (gimage);
return;

View File

@ -720,7 +720,7 @@ layers_new_layer_query (GimpImage *gimage,
width,
height,
gimp_image_base_type_with_alpha (gimage),
_("Empty Layer Copy"),
_("Empty Layer"),
opacity,
mode);
@ -733,6 +733,7 @@ layers_new_layer_query (GimpImage *gimage,
}
gimp_image_add_layer (gimage, new_layer, -1);
gimp_image_flush (gimage);
gimp_image_undo_group_end (gimage);
return;

View File

@ -441,9 +441,10 @@ vectors_new_vectors_query (GimpImage *gimage,
{
GimpVectors *new_vectors;
new_vectors = gimp_vectors_new (gimage, _("Empty Vectors Copy"));
new_vectors = gimp_vectors_new (gimage, _("Empty Path"));
gimp_image_add_vectors (gimage, new_vectors, -1);
gimp_display_flush (gimage);
return;
}

View File

@ -118,7 +118,7 @@ gimp_channel_tree_view_class_init (GimpChannelTreeViewClass *klass)
item_view_class->edit_desc = _("Edit Channel Attributes");
item_view_class->edit_help_id = GIMP_HELP_CHANNEL_EDIT;
item_view_class->new_desc = _("New Channel");
item_view_class->new_desc = _("New Channel\n%s New Channel Dialog");
item_view_class->new_help_id = GIMP_HELP_CHANNEL_NEW;
item_view_class->duplicate_desc = _("Duplicate Channel");
item_view_class->duplicate_help_id = GIMP_HELP_CHANNEL_DUPLICATE;

View File

@ -344,11 +344,8 @@ gimp_item_tree_view_init (GimpItemTreeView *view,
NULL,
view);
str = g_strdup_printf (_("%s\n"
"%s %s Dialog"),
view_class->new_desc,
gimp_get_mod_name_shift (),
view_class->new_desc);
str = g_strdup_printf (view_class->new_desc,
gimp_get_mod_name_shift ());
view->new_button =
gimp_editor_add_button (editor,

View File

@ -204,7 +204,7 @@ gimp_layer_tree_view_class_init (GimpLayerTreeViewClass *klass)
item_view_class->edit_desc = _("Edit Layer Attributes");
item_view_class->edit_help_id = GIMP_HELP_LAYER_EDIT;
item_view_class->new_desc = _("New Layer");
item_view_class->new_desc = _("New Layer\n%s New Layer Dialog");
item_view_class->new_help_id = GIMP_HELP_LAYER_NEW;
item_view_class->duplicate_desc = _("Duplicate Layer");
item_view_class->duplicate_help_id = GIMP_HELP_LAYER_DUPLICATE;

View File

@ -128,7 +128,7 @@ gimp_vectors_tree_view_class_init (GimpVectorsTreeViewClass *klass)
item_view_class->edit_desc = _("Edit Path Attributes");
item_view_class->edit_help_id = GIMP_HELP_PATH_EDIT;
item_view_class->new_desc = _("New Path");
item_view_class->new_desc = _("New Path\n%s New Path Dialog");
item_view_class->new_help_id = GIMP_HELP_PATH_NEW;
item_view_class->duplicate_desc = _("Duplicate Path");
item_view_class->duplicate_help_id = GIMP_HELP_PATH_DUPLICATE;