From 976ce209938be1bfc088d5f6cdd523a4089e1dd0 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Wed, 15 May 2013 18:14:01 +0200 Subject: Make it possible to type a path and have browser switch accordingly. --- plugingui/listboxbasic.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui/listboxbasic.cc') diff --git a/plugingui/listboxbasic.cc b/plugingui/listboxbasic.cc index f0699c7..df7877d 100644 --- a/plugingui/listboxbasic.cc +++ b/plugingui/listboxbasic.cc @@ -144,6 +144,11 @@ std::string GUI::ListBoxBasic::selectedValue() return items[selected].value; } +void GUI::ListBoxBasic::clearSelectedValue() +{ + setSelection(-1); +} + void GUI::ListBoxBasic::registerClickHandler(void (*handler)(void *), void *ptr) { this->clk_handler = handler; -- cgit v1.2.3