diff --git a/app/actions/debug-commands.c b/app/actions/debug-commands.c index c438d23cc7..07bffb16f9 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 2b97aa39b8..ac0fe54320 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);