diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-11-14 19:04:09 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-11-14 19:04:09 +0000 |
commit | 37a96e693506ff169d6702d384405597f3ff54e1 (patch) | |
tree | a94af90660a2939c636e7356b353bd35db3cdb16 | |
parent | dbcf5fcc56e85f372d3be40f725a8e526ef00ca1 (diff) |
final touches for 0.3.1
final touches for 0.3.1
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | src/GsWidget.cxx | 8 |
3 files changed, 6 insertions, 6 deletions
@@ -4,7 +4,7 @@ flpsed ChangeLog flpsed-0.3.1 - Fix redraw problem after scrolling. - Allow moving of text with arrow keys for better text positioning. - - Tab key now cycles through text fields. + - Tab key now cycles through text fields on current page. - Various bug fixes. flpsed-0.3.0 @@ -60,4 +60,4 @@ flpsed -b -t name="Hans Meier" -t street="Haupstr. 14" letter-templ.ps out.ps Johannes Hofmann (Johannes.Hofmann@gmx.de) -November 10, 2004 +November 14, 2004 diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx index 7ecbedd..590f6f5 100644 --- a/src/GsWidget.cxx +++ b/src/GsWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: GsWidget.cxx,v 1.12 2004/11/10 18:49:08 hofmann Exp $" +// "$Id: GsWidget.cxx,v 1.13 2004/11/14 20:04:09 hofmann Exp $" // // GsWidget routines. // @@ -118,7 +118,7 @@ GsWidget::~GsWidget() { int GsWidget::load(char *f) { int fd = open(f, O_RDONLY); if (fd == -1) { - fprintf(stderr, "Could not open file %s (errno %d).\n", f, errno); + perror("open"); return 1; } return load(fd); @@ -161,7 +161,7 @@ int GsWidget::load(int fd) { argv[5] = "-"; argv[6] = NULL; execvp(argv[0], argv); - fprintf(stderr, "Could not exec gs (errno %d)\n", errno); + perror("exec"); fprintf(stderr, "Please install ghostscript and make sure 'gs' " "is in the PATH.\n"); exit(1); @@ -179,7 +179,7 @@ int GsWidget::reload() { if (in_fd >= 0) { ret = lseek(in_fd, 0L, SEEK_SET); if (ret == -1) { - fprintf(stderr, "lseek failed (errno %d)\n", errno); + perror("lseek"); return 1; } load(in_fd); |