app: try harder to show filename and file size in Image -> Properties

by using gimp_image_get_any_uri() instead of get_filename() or get_uri().
This commit is contained in:
Michael Natterer 2012-02-11 22:54:06 +01:00
parent 3670fa5ddd
commit 90065a517e
1 changed files with 6 additions and 2 deletions

View File

@ -310,7 +310,7 @@ static void
gimp_image_prop_view_label_set_filename (GtkWidget *label,
GimpImage *image)
{
const gchar *uri = gimp_image_get_uri (image);
const gchar *uri = gimp_image_get_any_uri (image);
if (uri)
{
@ -330,7 +330,11 @@ static void
gimp_image_prop_view_label_set_filesize (GtkWidget *label,
GimpImage *image)
{
gchar *filename = gimp_image_get_filename (image);
const gchar *uri = gimp_image_get_any_uri (image);
gchar *filename = NULL;
if (uri)
filename = g_filename_from_uri (uri, NULL, NULL);
if (filename)
{