[gimp] app: try harder to show filename and file size in Image -> Properties
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: try harder to show filename and file size in Image -> Properties
- Date: Sat, 11 Feb 2012 21:55:05 +0000 (UTC)
commit 90065a517ee73d15a962ca64649b4b01a2189dfe
Author: Michael Natterer <mitch gimp org>
Date: Sat Feb 11 22:54:06 2012 +0100
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().
app/widgets/gimpimagepropview.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpimagepropview.c b/app/widgets/gimpimagepropview.c
index 591ed42..0f6164a 100644
--- a/app/widgets/gimpimagepropview.c
+++ b/app/widgets/gimpimagepropview.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]