FocusLabel::FocusLabel(Widget *parent)
: FocusWidget(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());
}
: style()->getTextUnfocus());
unsigned int sidemargin = style()->getBevelWidth() * 2;
- userstring 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