summaryrefslogtreecommitdiff
path: root/src/flpsed.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-06-17 18:00:44 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-06-17 18:00:44 +0000
commitf9ddb2c30135b5894315c8e034617ef5625f03be (patch)
treeb9e8e4551bae8f67b57fea6b8b9f6f9374731437 /src/flpsed.cxx
parent24d3b8060c76c78a1298a3069d030e6e5203c578 (diff)
add version to about dialog.
add version to about dialog.
Diffstat (limited to 'src/flpsed.cxx')
-rw-r--r--src/flpsed.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx
index c4abf81..02bea09 100644
--- a/src/flpsed.cxx
+++ b/src/flpsed.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: flpsed.cxx,v 1.38 2005/06/17 19:56:32 hofmann Exp $"
+// "$Id: flpsed.cxx,v 1.39 2005/06/17 20:00:44 hofmann Exp $"
//
// flpsed program.
//
@@ -44,6 +44,7 @@
#include "PSEditor.H"
#include "util.h"
+#include "../config.h"
PSEditor *psed_p = NULL;
Fl_Scroll *scroll = NULL;
@@ -209,8 +210,9 @@ void print_cb() {
void about_cb() {
fl_message("flpsed -- a pseudo PostScript editor\n"
+ "Version %s\n\n"
"(c) Johannes Hofmann 2004, 2005\n\n"
- "PostScript is a registered trademark of Adobe Systems");
+ "PostScript is a registered trademark of Adobe Systems", VERSION);
}
Fl_Choice *size_c;
@@ -378,7 +380,7 @@ int main(int argc, char** argv) {
FILE *in_fp = NULL, *out_fp = NULL;
err = 0;
- while ((c = getopt(argc, argv, "hdbt:")) != EOF) {
+ while ((c = getopt(argc, argv, "hdbt:")) != -1) {
switch (c) {
case 'h':
usage();