X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fdropdown.cpp;h=68c1beed1321fea803981b36701246576273a397;hb=6d9570c97584758e3cfcac6827d439b7fb844cf4;hp=f922001e2db0764c38000ec046bb9cd1c53150e4;hpb=7286d604956ddffcbfa2df6567de866f3d5df3a2;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index f922001..68c1bee 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -27,8 +27,6 @@ void Dropdown::init() { input_type = INPUT_NAVIGATION; - dropped = false; - add(list); list.set_visible(false); list.set_view_all(); @@ -191,7 +189,7 @@ void Dropdown::list_item_selected(unsigned index) text.set(list.get_data().get_string(index)); signal_item_selected.emit(index); - rebuild(); + mark_rebuild(); } void Dropdown::list_selection_cleared()