X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.cpp;h=5fc208268d06e117d7b181b6542154fbf47eb450;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=38f8e92a67d4db6b97bef640e539b5c367ebbc73;hpb=6d73e04329fc3752552773e4d11d7374caf779f6;p=libs%2Fgltk.git diff --git a/source/widget.cpp b/source/widget.cpp index 38f8e92..5fc2082 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -14,7 +14,7 @@ Widget::Widget(): style(0), state(NORMAL), visible(true), - focusable(true), + input_type(INPUT_NONE), parent(0) { } @@ -162,7 +162,7 @@ void Widget::set_visible(bool v) void Widget::set_focusable(bool f) { - focusable = f; + input_type = (f ? INPUT_TEXT : INPUT_NONE); } void Widget::set_focus()