]> www.fi.muni.cz Git - evince.git/commitdiff
Log gs env var
authorMarco Pesenti Gritti <marco@gnome.org>
Mon, 7 Feb 2005 22:41:07 +0000 (22:41 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 7 Feb 2005 22:41:07 +0000 (22:41 +0000)
2005-02-07  Marco Pesenti Gritti  <marco@gnome.org>

        * ps/ps-document.c: (start_interpreter):

        Log gs env var

ChangeLog
ps/ps-document.c

index 57a9a97851801d41f3e97bf52a8c2134d65ae00e..b8ef9da83c66a534f218568f613e211ce16c9bbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-02-07  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * ps/ps-document.c: (start_interpreter):
+
+       Log gs env var
+
 2005-02-07  Marco Pesenti Gritti  <marco@gnome.org>
 
        * shell/ev-page-view.c: (ev_page_view_dispose):
index c7263bc1fce04d98826abf54b104a30568ecec1c..928e38c0da43d42eb87471eff131542839089e4b 100644 (file)
@@ -784,6 +784,12 @@ start_interpreter(PSDocument * gs)
     return -1;
   }
 
+  gv_env = g_strdup_printf("GHOSTVIEW=%ld %ld",
+                           gdk_x11_drawable_get_xid(gs->pstarget),
+                          gdk_x11_drawable_get_xid(gs->bpixmap));
+
+  LOG ("Launching ghostview with env %s", gv_env)
+
   gs->busy = TRUE;
   gs->interpreter_pid = fork();
   switch (gs->interpreter_pid) {
@@ -819,13 +825,8 @@ start_interpreter(PSDocument * gs)
       }
     }
 
-    gv_env = g_strdup_printf("GHOSTVIEW=%ld %ld",
-                             gdk_x11_drawable_get_xid(gs->pstarget),
-                            gdk_x11_drawable_get_xid(gs->bpixmap));
     putenv(gv_env);
 
-    LOG ("Launching ghostview with env %s", gv_env)
-
     /* change to directory where the input file is. This helps
      * with postscript-files which include other files using
      * a relative path */