X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.h;h=ad8b4619bc4a00789e6bd53ab6ac6dae3ba83829;hb=08b48157dc9ca5a4bd59d8eec9fa4e3bff8f0503;hp=06aefa5af96d32cc0b6b3cc0d590bb092298164b;hpb=74934c6f7a6fd0f9e9bf11eeb9f33cf9279bf471;p=libs%2Fgltk.git diff --git a/source/dropdown.h b/source/dropdown.h index 06aefa5..ad8b461 100644 --- a/source/dropdown.h +++ b/source/dropdown.h @@ -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 void set_item_type() { list.set_item_type(); } - 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: