mirror of https://github.com/GNOME/gimp.git
Issue #11808: The RGBA channels cannot be duplicated anymore or used with…
… the selection commands.
This commit is contained in:
parent
d225d58a22
commit
12370d7dab
|
@ -383,7 +383,6 @@ channels_duplicate_cmd_callback (GimpAction *action,
|
|||
GimpImage *image = NULL;
|
||||
GList *channels;
|
||||
GimpChannel *parent = GIMP_IMAGE_ACTIVE_PARENT;
|
||||
return_if_no_channels (image, channels, data);
|
||||
|
||||
if (GIMP_IS_COMPONENT_EDITOR (data))
|
||||
{
|
||||
|
@ -392,6 +391,8 @@ channels_duplicate_cmd_callback (GimpAction *action,
|
|||
const gchar *desc;
|
||||
gchar *name;
|
||||
|
||||
return_if_no_image (image, data);
|
||||
|
||||
component = GIMP_COMPONENT_EDITOR (data)->clicked_component;
|
||||
|
||||
gimp_enum_get_value (GIMP_TYPE_CHANNEL_TYPE, component,
|
||||
|
@ -415,6 +416,8 @@ channels_duplicate_cmd_callback (GimpAction *action,
|
|||
GList *new_channels = NULL;
|
||||
GList *iter;
|
||||
|
||||
return_if_no_channels (image, channels, data);
|
||||
|
||||
channels = g_list_copy (channels);
|
||||
gimp_image_undo_group_start (image,
|
||||
GIMP_UNDO_GROUP_CHANNEL_ADD,
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
<item><attribute name="action">app.channels-new</attribute></item>
|
||||
<item><attribute name="action">app.channels-raise</attribute></item>
|
||||
<item><attribute name="action">app.channels-lower</attribute></item>
|
||||
<item><attribute name="action">app.channels-duplicate</attribute></item>
|
||||
<item><attribute name="action">channels.channels-duplicate</attribute></item>
|
||||
<item><attribute name="action">app.channels-delete</attribute></item>
|
||||
</section>
|
||||
<section>
|
||||
<item><attribute name="action">app.channels-selection-replace</attribute></item>
|
||||
<item><attribute name="action">app.channels-selection-add</attribute></item>
|
||||
<item><attribute name="action">app.channels-selection-subtract</attribute></item>
|
||||
<item><attribute name="action">app.channels-selection-intersect</attribute></item>
|
||||
<item><attribute name="action">channels.channels-selection-replace</attribute></item>
|
||||
<item><attribute name="action">channels.channels-selection-add</attribute></item>
|
||||
<item><attribute name="action">channels.channels-selection-subtract</attribute></item>
|
||||
<item><attribute name="action">channels.channels-selection-intersect</attribute></item>
|
||||
</section>
|
||||
</submenu>
|
||||
</menu>
|
||||
|
|
Loading…
Reference in New Issue