[brasero] Fix file name appearance
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix file name appearance
- Date: Sun, 1 Nov 2009 21:01:12 +0000 (UTC)
commit 843b0d5c8dba6dcd880d6a2836f085483ec8a94f
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sun Nov 1 17:01:08 2009 +0100
Fix file name appearance
src/brasero-audio-disc.c | 8 ++++++--
src/brasero-video-disc.c | 6 +++++-
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/brasero-audio-disc.c b/src/brasero-audio-disc.c
index 544e718..6608fa0 100644
--- a/src/brasero-audio-disc.c
+++ b/src/brasero-audio-disc.c
@@ -801,9 +801,13 @@ brasero_audio_disc_unreadable_dialog (BraseroAudioDisc *disc,
GError *error)
{
gchar *primary;
- gchar *name = NULL;
+ gchar *name;
+ GFile *file;
+
+ file = g_file_new_for_uri (uri);
+ name = g_file_get_basename (file);
+ g_object_unref (file);
- BRASERO_GET_BASENAME_FOR_DISPLAY (uri, name);
primary = g_strdup_printf (_("\"%s\" could not be opened."), name);
brasero_app_alert (brasero_app_get_default (),
primary,
diff --git a/src/brasero-video-disc.c b/src/brasero-video-disc.c
index ca5f259..3350bd7 100644
--- a/src/brasero-video-disc.c
+++ b/src/brasero-video-disc.c
@@ -385,8 +385,12 @@ brasero_video_disc_unreadable_uri_dialog (BraseroVideoDisc *self,
{
gchar *primary;
gchar *name;
+ GFile *file;
+
+ file = g_file_new_for_uri (uri);
+ name = g_file_get_basename (file);
+ g_object_unref (file);
- name = g_filename_display_basename (uri);
primary = g_strdup_printf (_("\"%s\" could not be opened."), name);
brasero_app_alert (brasero_app_get_default (),
primary,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]