]> Dogcows Code - chaz/openbox/blobdiff - otk/focuswidget.cc
print a warning if more than one main widget is set
[chaz/openbox] / otk / focuswidget.cc
index 22dd8757d5b6927e0b3f3bc7d04d97bed61e3585..ffbaeb7e09bd995b4596eec63b99500bd06f18e4 100644 (file)
@@ -8,6 +8,13 @@ OtkFocusWidget::OtkFocusWidget(OtkWidget *parent, Direction direction)
   _focus_texture = parent->getTexture();
 }
 
+OtkFocusWidget::OtkFocusWidget(OtkApplication *app, Direction direction,
+                               Cursor cursor, int bevel_width)
+  : OtkWidget(app, direction, cursor, bevel_width),
+    _unfocus_texture(0), _focused(true)
+{
+}
+
 OtkFocusWidget::OtkFocusWidget(Style *style, Direction direction,
                                Cursor cursor, int bevel_width)
   : OtkWidget(style, direction, cursor, bevel_width),
@@ -15,11 +22,17 @@ OtkFocusWidget::OtkFocusWidget(Style *style, Direction direction,
 {
 }
 
+OtkFocusWidget::~OtkFocusWidget()
+{
+}
+
 void OtkFocusWidget::focus(void)
 {
   if (_focused)
     return;
 
+  // XXX: what about OtkWidget::focus()
+
   assert(_focus_texture);
   OtkWidget::setTexture(_focus_texture);
   OtkWidget::update();
This page took 0.025588 seconds and 4 git commands to generate.