]> Dogcows Code - chaz/openbox/blobdiff - src/backgroundwidget.cc
add a getGravity function to get the gravity from the window attributes initially
[chaz/openbox] / src / backgroundwidget.cc
index 8b63b44d8781c76055af85d8115b9fa76cc52bc7..9d660a7939c75cc7fcd8a7332f6586fcf9dba93a 100644 (file)
@@ -8,20 +8,20 @@
 
 namespace ob {
 
-OBBackgroundWidget::OBBackgroundWidget(otk::OtkWidget *parent,
-                                       OBWidget::WidgetType type)
-  : otk::OtkWidget(parent),
-    OBWidget(type)
+BackgroundWidget::BackgroundWidget(otk::Widget *parent,
+                                   WidgetBase::WidgetType type)
+  : otk::Widget(parent),
+    WidgetBase(type)
 {
 }
 
 
-OBBackgroundWidget::~OBBackgroundWidget()
+BackgroundWidget::~BackgroundWidget()
 {
 }
 
 
-void OBBackgroundWidget::setTextures()
+void BackgroundWidget::setTextures()
 {
   switch (type()) {
   case Type_Titlebar:
@@ -48,9 +48,9 @@ void OBBackgroundWidget::setTextures()
 }
 
 
-void OBBackgroundWidget::setStyle(otk::Style *style)
+void BackgroundWidget::setStyle(otk::Style *style)
 {
-  OtkWidget::setStyle(style);
+  Widget::setStyle(style);
   setTextures();
   switch (type()) {
   case Type_Titlebar:
@@ -65,23 +65,23 @@ void OBBackgroundWidget::setStyle(otk::Style *style)
 }
 
 
-void OBBackgroundWidget::focus()
+void BackgroundWidget::focus()
 {
-  otk::OtkWidget::focus();
+  otk::Widget::focus();
   setTextures();
 }
 
 
-void OBBackgroundWidget::unfocus()
+void BackgroundWidget::unfocus()
 {
-  otk::OtkWidget::unfocus();
+  otk::Widget::unfocus();
   setTextures();
 }
 
 
-void OBBackgroundWidget::adjust()
+void BackgroundWidget::adjust()
 {
-  // XXX: adjust shit
+  // nothing to adjust here. its done in Frame::adjustSize
 }
 
 }
This page took 0.021721 seconds and 4 git commands to generate.