summaryrefslogtreecommitdiff
path: root/src/flpsed.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-09 18:16:10 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-02-09 18:16:10 +0100
commitbed947bd0e8a76d458e6997eec1c82c95842cb27 (patch)
treecb2c2d90ef02ed535b7e54a21ecc92e685a967e0 /src/flpsed.cxx
parent13278eaedfccf32ea897ef187d82d047af903557 (diff)
new version without extra feeder process
Diffstat (limited to 'src/flpsed.cxx')
-rw-r--r--src/flpsed.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx
index a341fc2..596d1ac 100644
--- a/src/flpsed.cxx
+++ b/src/flpsed.cxx
@@ -24,7 +24,6 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <signal.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -81,8 +80,8 @@ void open_cb() {
if (!check_save()) return;
char *file = fl_file_chooser("Open File?", "*.ps", filename);
if(file != NULL) {
- psed_p->load(file);
+ psed_p->open_file(file);
psed_p->load_page(2);
}
}
@@ -105,7 +104,7 @@ void import_pdf_cb() {
p = pexecvp("pdftops", args, &pid, "r");
if (p) {
- psed_p->load(p);
+ psed_p->open_file(p);
fclose(p);
waitpid(pid, &status, 0);
if (WEXITSTATUS(status) == 127 || WEXITSTATUS(status) == 126) {
@@ -531,7 +530,7 @@ int main(int argc, char** argv) {
if (in_fp) {
sleep(1); // this seems to be necessary on fast systems to make the
// GHOSTVIEW property available to ghostsscript.
- psed_p->load(in_fp);
+ psed_p->open_file(in_fp);
fclose(in_fp);
}