]> Dogcows Code - chaz/openbox/blobdiff - src/labelwidget.cc
removing all prefixes completed
[chaz/openbox] / src / labelwidget.cc
index 4fd48b59ab3275f259fe292cdbdb8b6fd034dd38..9ff45298a834f59a5bcc4f17c91169f217e33b5f 100644 (file)
@@ -1,4 +1,5 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 
 #ifdef HAVE_CONFIG_H
 # include "../config.h"
 
 namespace ob {
 
-OBLabelWidget::OBLabelWidget(otk::OtkWidget *parent, OBWidget::WidgetType type)
-  : otk::OtkWidget(parent),
-    OBWidget(type)
+LabelWidget::LabelWidget(otk::Widget *parent, WidgetBase::WidgetType type)
+  : otk::Widget(parent),
+    WidgetBase(type)
 {
-  const otk::ScreenInfo *info = otk::OBDisplay::screenInfo(_screen);
-  _xftdraw = XftDrawCreate(otk::OBDisplay::display, _window, info->visual(),
+  const otk::ScreenInfo *info = otk::Display::screenInfo(_screen);
+  _xftdraw = XftDrawCreate(otk::Display::display, _window, info->visual(),
                            info->colormap());
 }
 
 
-OBLabelWidget::~OBLabelWidget()
+LabelWidget::~LabelWidget()
 {
   XftDrawDestroy(_xftdraw);
 }
 
 
-void OBLabelWidget::setText(const std::string &text)
+void LabelWidget::setText(const std::string &text)
 {
   _text = text;
   _dirty = true;
 }
 
 
-void OBLabelWidget::setTextures()
+void LabelWidget::setTextures()
 {
   if (_focused) {
     setTexture(_style->getLabelFocus());
@@ -45,9 +46,9 @@ void OBLabelWidget::setTextures()
 }
 
 
-void OBLabelWidget::setStyle(otk::Style *style)
+void LabelWidget::setStyle(otk::Style *style)
 {
-  OtkWidget::setStyle(style);
+  otk::Widget::setStyle(style);
   setTextures();
   _font = style->getFont();
   assert(_font);
@@ -56,25 +57,25 @@ void OBLabelWidget::setStyle(otk::Style *style)
 }
 
 
-void OBLabelWidget::focus()
+void LabelWidget::focus()
 {
-  otk::OtkWidget::focus();
+  otk::Widget::focus();
   setTextures();
 }
 
 
-void OBLabelWidget::unfocus()
+void LabelWidget::unfocus()
 {
-  otk::OtkWidget::unfocus();
+  otk::Widget::unfocus();
   setTextures();
 }
 
 
-void OBLabelWidget::update()
+void LabelWidget::update()
 {
   bool draw = _dirty;
 
-  OtkWidget::update();
+  otk::Widget::update();
 
   if (draw) {
     std::string t = _text;
@@ -111,7 +112,7 @@ void OBLabelWidget::update()
 }
 
 
-void OBLabelWidget::adjust()
+void LabelWidget::adjust()
 {
   // nothing to adjust. no children.
 }
This page took 0.024206 seconds and 4 git commands to generate.