[brasero/gnome-2-28] Fix file name appearance
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero/gnome-2-28] Fix file name appearance
- Date: Mon, 23 Nov 2009 10:51:48 +0000 (UTC)
commit 38420b7016defdefb63e3a7f703bf7f59a16f59b
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 3458375..2b04173 100644
--- a/src/brasero-audio-disc.c
+++ b/src/brasero-audio-disc.c
@@ -782,9 +782,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 ff399a2..9ba6dad 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]