[gimp] plug-ins: use the image's name for the metadata dialog's title
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: use the image's name for the metadata dialog's title
- Date: Sat, 2 May 2015 20:32:37 +0000 (UTC)
commit b52c0657aed88f423c5a8355d7757dc982cac93a
Author: Michael Natterer <mitch gimp org>
Date: Sat May 2 16:31:36 2015 -0400
plug-ins: use the image's name for the metadata dialog's title
not its URI's basename. The name is the same string that is shown in
the image window title.
plug-ins/common/metadata.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/metadata.c b/plug-ins/common/metadata.c
index 27cb582..1472d45 100644
--- a/plug-ins/common/metadata.c
+++ b/plug-ins/common/metadata.c
@@ -201,7 +201,7 @@ metadata_dialog (gint32 image_id,
GObject *write_button;
gchar *ui_file;
gchar *title;
- gchar *fname;
+ gchar *name;
GError *error = NULL;
builder = gtk_builder_new ();
@@ -220,9 +220,10 @@ metadata_dialog (gint32 image_id,
}
g_free (ui_file);
- fname = g_filename_display_basename (gimp_image_get_uri (image_id));
- title = g_strdup_printf ("Metadata: %s", fname);
- g_free (fname);
+
+ name = gimp_image_get_name (image_id);
+ title = g_strdup_printf ("Metadata: %s", name);
+ g_free (name);
dialog = gimp_dialog_new (title,
"gimp-metadata-dialog",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]