]> git.tdb.fi Git - libs/gltk.git/commitdiff
Mark List::Item as receiving navigation input
authorMikko Rasa <tdb@tdb.fi>
Mon, 23 Sep 2019 18:53:35 +0000 (21:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 23 Sep 2019 18:54:14 +0000 (21:54 +0300)
To make it consistent with the fact that it can receive focus.

source/list.cpp
source/list.h

index de7f857935d57050b3f859e6b70186b57361d0de..9eff09bb47566a1a6785ee909327da878f8a29ce 100644 (file)
@@ -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")
index 4526a48375b843bfd50d7321ab56a984b0ffe7ac..8b9db4090ecfa7ef9b6ece56ef291366f75313f6 100644 (file)
@@ -64,7 +64,7 @@ public:
        class Item: virtual public Widget, protected Container
        {
        protected:
-               Item() { }
+               Item();
 
        public:
                virtual const char *get_class() const { return "listitem"; }