[gimp] Give unnamed items proper names
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Give unnamed items proper names
- Date: Tue, 9 Feb 2010 21:40:41 +0000 (UTC)
commit 3514271fdea33b06406299c251104b18392177a2
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 7 19:22:02 2010 +0100
Give unnamed items proper names
Use the item class' default name unstead of "Unnamed" so they
will be called "Layer", "Channel" and "Path".
app/core/gimpitem.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index 51c5285..0b75016 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -661,10 +661,11 @@ gimp_item_configure (GimpItem *item,
gimp_item_set_offset (item, offset_x, offset_y);
- if (name)
+ if (name && strlen (name))
gimp_object_set_name (GIMP_OBJECT (item), name);
else
- gimp_object_set_static_name (GIMP_OBJECT (item), _("Unnamed"));
+ gimp_object_set_static_name (GIMP_OBJECT (item),
+ GIMP_ITEM_GET_CLASS (item)->default_name);
g_object_thaw_notify (G_OBJECT (item));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]