[evince] Convert relative path to absolute path for evince-previewer
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Convert relative path to absolute path for evince-previewer
- Date: Wed, 12 May 2010 12:47:24 +0000 (UTC)
commit b016ef1e8b9920116568cab526b6ce44bddbb3da
Author: Marek Kasik <mkasik redhat com>
Date: Wed May 12 14:47:07 2010 +0200
Convert relative path to absolute path for evince-previewer
Add ability to open documents specified by relative path in
evince-previewer.
previewer/ev-previewer.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c
index 0331766..990a003 100644
--- a/previewer/ev-previewer.c
+++ b/previewer/ev-previewer.c
@@ -86,8 +86,12 @@ ev_previewer_load_document (const gchar *filename,
{
EvJob *job;
gchar *uri;
+ GFile *file;
+
+ file = g_file_new_for_commandline_arg (filename);
+ uri = g_file_get_uri (file);
+ g_object_unref (file);
- uri = g_filename_to_uri (filename, NULL, NULL);
job = ev_job_load_new (uri);
g_signal_connect (job, "finished",
G_CALLBACK (ev_previewer_load_job_finished),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]