[gimp] app: Use original layer names when importing multi-layered images
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Use original layer names when importing multi-layered images
- Date: Sat, 22 Aug 2009 08:39:00 +0000 (UTC)
commit ee8b53934b67420bc96433f78e7836a615ce143c
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Aug 22 10:34:15 2009 +0200
app: Use original layer names when importing multi-layered images
We have no reason to believe that the original layer names when
importing multi-layered images are not good enough, so stop adding the
filename as a prefix to the names.
app/file/file-open.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index 93ceca7..aba117f 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -644,10 +644,8 @@ file_open_convert_items (GimpImage *dest_image,
}
else
{
- gchar *name = g_strdup_printf ("%s - %s", basename,
- GIMP_OBJECT (src)->name);
-
- gimp_object_take_name (GIMP_OBJECT (item), name);
+ gimp_object_set_name (GIMP_OBJECT (item),
+ gimp_object_get_name (GIMP_OBJECT (src)));
}
list->data = item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]