[gimp] app: Use gimp_image_set_uri()
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Use gimp_image_set_uri()
- Date: Wed, 2 Feb 2011 21:45:22 +0000 (UTC)
commit 6ea36f3383bc2a138d8bb9d3d37fb4f06ede9bdc
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Jan 26 20:49:00 2011 +0100
app: Use gimp_image_set_uri()
I forgot to do this...
app/actions/debug-commands.c | 3 +--
app/file/file-open.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/debug-commands.c b/app/actions/debug-commands.c
index c438d23..07bffb1 100644
--- a/app/actions/debug-commands.c
+++ b/app/actions/debug-commands.c
@@ -357,8 +357,7 @@ debug_show_image_graph (GimpImage *source_image)
tile_manager_height (tiles),
GIMP_RGB,
FALSE);
- gimp_object_set_name (GIMP_OBJECT (new_image),
- new_name);
+ gimp_image_set_uri (new_image, new_name);
layer = gimp_layer_new_from_tiles (tiles,
new_image,
GIMP_RGBA_IMAGE,
diff --git a/app/file/file-open.c b/app/file/file-open.c
index 2b97aa3..ac0fe54 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -212,7 +212,7 @@ file_open_image (Gimp *gimp,
gimp_image_set_imported_uri (image, uri);
/* We shall treat this file as an Untitled file */
- gimp_object_set_name (GIMP_OBJECT (image), NULL);
+ gimp_image_set_uri (image, NULL);
}
}
@@ -593,7 +593,7 @@ file_open_sanitize_image (GimpImage *image,
gboolean as_new)
{
if (as_new)
- gimp_object_set_name (GIMP_OBJECT (image), NULL);
+ gimp_image_set_uri (image, NULL);
/* clear all undo steps */
gimp_image_undo_free (image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]