From: Marek Kasik Date: Wed, 12 May 2010 12:47:07 +0000 (+0200) Subject: Convert relative path to absolute path for evince-previewer X-Git-Tag: EVINCE_2_31_2~48 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=b016ef1e8b9920116568cab526b6ce44bddbb3da;p=evince.git Convert relative path to absolute path for evince-previewer Add ability to open documents specified by relative path in evince-previewer. --- diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c index 0331766f..990a003c 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),