summaryrefslogtreecommitdiff
path: root/otk/label.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-12 21:17:26 +0000
committerDana Jansens <danakj@orodu.net>2003-01-12 21:17:26 +0000
commit74061b4e2d33d7e2101c4edda26cfc2a1294f32b (patch)
treec0bfe3b00472252f4cbf67c39bd82110f8a03175 /otk/label.hh
parentc03068ee3a2e981e31eeda583d10b9d572de92bd (diff)
use "userstring" for all user viewable strings
Diffstat (limited to 'otk/label.hh')
-rw-r--r--otk/label.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/otk/label.hh b/otk/label.hh
index 0366c262..94ebe0b3 100644
--- a/otk/label.hh
+++ b/otk/label.hh
@@ -4,6 +4,7 @@
#include "widget.hh"
#include "font.hh"
+#include "userstring.hh"
namespace otk {
@@ -14,8 +15,8 @@ public:
Label(Widget *parent);
~Label();
- inline const std::string &getText(void) const { return _text; }
- void setText(const std::string &text) { _text = text; _dirty = true; }
+ inline const userstring &getText(void) const { return _text; }
+ void setText(const userstring &text) { _text = text; _dirty = true; }
void update(void);
@@ -25,7 +26,7 @@ private:
//! Object used by Xft to render to the drawable
XftDraw *_xftdraw;
//! Text displayed in the label
- std::string _text;
+ userstring _text;
};
}