X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fdropdown.cpp;fp=source%2Fdropdown.cpp;h=ab00c4c3f0c7bd06c0edc453d18c0315ebf36063;hp=68c1beed1321fea803981b36701246576273a397;hb=aa9b8db38efb9e97460c76e27cecc4d1591b23e5;hpb=762a689d799075c0a10e1633bf95d53de80b4572 diff --git a/source/dropdown.cpp b/source/dropdown.cpp index 68c1bee..ab00c4c 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -51,7 +51,7 @@ void Dropdown::autosize_special(const Part &part, Geometry &ageom) const unsigned max_w = 0; const ListData &data = list.get_data(); - for(unsigned i=0; i(font.get_string_width(data.get_string(i))*font_size); max_w = max(max_w, w); @@ -177,7 +177,7 @@ void Dropdown::resize_list() list.set_geometry(lgeom); } -void Dropdown::list_item_selected(unsigned index) +void Dropdown::list_item_selected(size_t index) { if(dropped) {