X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=previewer%2Fev-previewer.c;h=50290798575cf0e2f09cf4fc40673d768e9bac55;hb=7aebdb8f5f4a4f44181590befdde27aac11a1e9a;hp=d8c1643a7ab135efeb3079e0cea98102a9494a05;hpb=9e435a09b62c4845052e46122911fe7c2f26d877;p=evince.git diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c index d8c1643a..50290798 100644 --- a/previewer/ev-previewer.c +++ b/previewer/ev-previewer.c @@ -15,7 +15,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include @@ -28,9 +28,6 @@ #include "ev-previewer-window.h" #ifdef G_OS_WIN32 -#ifdef DATADIR -#undef DATADIR -#endif #include #include #if !(_WIN32_WINNT >= 0x0500) @@ -86,8 +83,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), @@ -135,7 +136,7 @@ main (gint argc, gchar **argv) #ifdef ENABLE_NLS /* Initialize the i18n stuff */ - bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); + bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir()); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif