]> Dogcows Code - chaz/openbox/blobdiff - src/buttonwidget.hh
reorder how theyre destroyed, probably doesnt matter anyways.
[chaz/openbox] / src / buttonwidget.hh
index 66a9cf3724f13b6a5de88ea04d1305723766309c..16a21184255099e5a2cfdd591aa4fe28d73d8aae 100644 (file)
@@ -1,13 +1,13 @@
 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-#ifndef   __obbuttonwidget_hh
-#define   __obbuttonwidget_hh
+#ifndef   __buttonwidget_hh
+#define   __buttonwidget_hh
 
+#include "widgetbase.hh"
 #include "otk/widget.hh"
-#include "widget.hh"
 
 namespace ob {
 
-class OBButtonWidget : public otk::OtkWidget, public OBWidget
+class ButtonWidget : public otk::Widget, public WidgetBase
 {
 private:
   void setTextures();
@@ -15,13 +15,15 @@ private:
   unsigned int _button;
   
 public:
-  OBButtonWidget(otk::OtkWidget *parent, OBWidget::WidgetType type);
-  virtual ~OBButtonWidget();
+  ButtonWidget(otk::Widget *parent, WidgetBase::WidgetType type);
+  virtual ~ButtonWidget();
 
   virtual void setStyle(otk::Style *style);
 
   virtual void adjust();
 
+  virtual void update();
+  
   virtual void focus();
   virtual void unfocus();
 
@@ -31,4 +33,4 @@ public:
 
 }
 
-#endif // __obbuttonwidget_hh
+#endif // __buttonwidget_hh
This page took 0.02837 seconds and 4 git commands to generate.