summaryrefslogtreecommitdiff
path: root/src/PSEditText.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-21 19:02:05 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-10-21 19:02:05 +0000
commit286afda711bcf74b3f923778db7ca574815dc9e7 (patch)
tree4fff277c7454825da7671ada280d7f2e1f3e3792 /src/PSEditText.cxx
parentef1117eb50a9a0e82825e961be8e59d203ebf650 (diff)
implemented tag replacement
implemented tag replacement
Diffstat (limited to 'src/PSEditText.cxx')
-rw-r--r--src/PSEditText.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/PSEditText.cxx b/src/PSEditText.cxx
index 309fb0c..001f3c1 100644
--- a/src/PSEditText.cxx
+++ b/src/PSEditText.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditText.cxx,v 1.1 2004/10/21 19:55:36 hofmann Exp $"
+// "$Id: PSEditText.cxx,v 1.2 2004/10/21 21:02:05 hofmann Exp $"
//
// PSEditWidget routines.
//
@@ -95,6 +95,19 @@ PSEditText *PSEditText::get_match(int x1, int y1) {
}
}
+int PSEditText::set_text(const char *t) {
+ if (s) {
+ free(s);
+ }
+ if (t) {
+ s = strdup(t);
+ } else {
+ s = NULL;
+ }
+
+ return 0;
+}
+
char *PSEditText::get_text() {
return s;
}