mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
app: name the "Floating Selection" differently depending it floats a layer or…
… a layer mask. This is a first step to make a clearer difference between the 2 use cases.
This commit is contained in:
parent
fae838b227
commit
04810ec95e
1 changed files with 14 additions and 2 deletions
|
@ -779,8 +779,20 @@ gimp_layer_get_description (GimpViewable *viewable,
|
||||||
{
|
{
|
||||||
if (gimp_layer_is_floating_sel (GIMP_LAYER (viewable)))
|
if (gimp_layer_is_floating_sel (GIMP_LAYER (viewable)))
|
||||||
{
|
{
|
||||||
return g_strdup_printf (_("Floating Selection\n(%s)"),
|
GimpDrawable *drawable;
|
||||||
gimp_object_get_name (viewable));
|
const gchar *header = _("Floating Selection");
|
||||||
|
|
||||||
|
drawable = gimp_layer_get_floating_sel_drawable (GIMP_LAYER (viewable));
|
||||||
|
if (GIMP_IS_LAYER_MASK (drawable))
|
||||||
|
header = _("Floating Mask");
|
||||||
|
else if (GIMP_IS_LAYER (drawable))
|
||||||
|
header = _("Floating Layer");
|
||||||
|
/* TRANSLATORS: the first %s will be the type of floating item, i.e.
|
||||||
|
* either a "Floating Layer" or "Floating Mask" usually. The second will
|
||||||
|
* be a layer name.
|
||||||
|
*/
|
||||||
|
return g_strdup_printf (_("%s\n(%s)"),
|
||||||
|
header, gimp_object_get_name (viewable));
|
||||||
}
|
}
|
||||||
|
|
||||||
return GIMP_VIEWABLE_CLASS (parent_class)->get_description (viewable,
|
return GIMP_VIEWABLE_CLASS (parent_class)->get_description (viewable,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue