]> Dogcows Code - chaz/openbox/blobdiff - otk/label.cc
set the _text
[chaz/openbox] / otk / label.cc
index c17e295e49f4119c08551894f479a088fb3424a0..43d06f77aa6e8b0ad5e2ee1951ba51e976c200b3 100644 (file)
@@ -1,8 +1,6 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 
-#ifdef HAVE_CONFIG_H
-# include "../config.h"
-#endif
+#include "config.h"
 
 #include "label.hh"
 #include "display.hh"
@@ -51,6 +49,7 @@ void Label::setText(const ustring &text)
   std::string s = text.c_str(); // use a normal string, for its functionality
 
   _parsedtext.clear();
+  _text = text;
   
   // parse it into multiple lines
   std::string::size_type p = 0;
This page took 0.024794 seconds and 4 git commands to generate.