From: Mikko Rasa Date: Mon, 23 Sep 2019 18:53:35 +0000 (+0300) Subject: Mark List::Item as receiving navigation input X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=21cb1e0b6fcc653d1298423dff5af5609389d415;p=libs%2Fgltk.git Mark List::Item as receiving navigation input To make it consistent with the fact that it can receive focus. --- diff --git a/source/list.cpp b/source/list.cpp index de7f857..9eff09b 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -595,6 +595,11 @@ void List::DataObserver::refresh_item(unsigned i) } +List::Item::Item() +{ + input_type = INPUT_NAVIGATION; +} + void List::Item::autosize_special(const Part &part, Geometry &ageom) const { if(part.get_name()=="children") diff --git a/source/list.h b/source/list.h index 4526a48..8b9db40 100644 --- a/source/list.h +++ b/source/list.h @@ -64,7 +64,7 @@ public: class Item: virtual public Widget, protected Container { protected: - Item() { } + Item(); public: virtual const char *get_class() const { return "listitem"; }