]> Dogcows Code - chaz/openbox/blobdiff - otk/label.cc
add headers for select()
[chaz/openbox] / otk / label.cc
index 6b6a8e358424406a34a2ca95678f501cbfeeb1ad..da9edfd179708c591b30b6fbbe2e6f4ff6ceed59 100644 (file)
@@ -11,8 +11,8 @@ namespace otk {
 Label::Label(Widget *parent)
   : Widget(parent), _text("")
 {
-  const ScreenInfo *info = Display::screenInfo(screen());
-  _xftdraw = XftDrawCreate(Display::display, window(), info->visual(),
+  const ScreenInfo *info = display->screenInfo(screen());
+  _xftdraw = XftDrawCreate(**display, window(), info->visual(),
                            info->colormap());
 }
 
@@ -35,7 +35,7 @@ void Label::update(void)
     const Font *ft = style()->getFont();
     unsigned int sidemargin = style()->getBevelWidth() * 2;
 
-    std::string t = _text; // the actual text to draw
+    ustring t = _text; // the actual text to draw
     int x = sidemargin;    // x coord for the text
 
     // find a string that will fit inside the area for text
This page took 0.020258 seconds and 4 git commands to generate.