]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.h
Add a selection_cleared signal to List
[libs/gltk.git] / source / dropdown.h
index 06aefa5af96d32cc0b6b3cc0d590bb092298164b..ad8b4619bc4a00789e6bd53ab6ac6dae3ba83829 100644 (file)
@@ -39,7 +39,7 @@ public:
        virtual const char *get_class() const { return "dropdown"; }
 
 private:
-       virtual void autosize_special(const Part &, Geometry &);
+       virtual void autosize_special(const Part &, Geometry &) const;
 
 public:
        void set_data(ListData &d) { list.set_data(d); }
@@ -49,7 +49,7 @@ public:
        template<typename T>
        void set_item_type() { list.set_item_type<T>(); }
 
-       void set_selected_index(int);
+       void set_selected_index(int i) { list.set_selected_index(i); }
        int get_selected_index() const { return list.get_selected_index(); }
 
 private: