From 7a8fff2da5f732bad0beaf934e7a20395b4921bd Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 12 Dec 2005 19:18:19 +0000 Subject: add scrollbar to listbox --- lib/gui/elistboxcontent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gui/elistboxcontent.cpp') diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 362a3f84..dea72a6c 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -246,6 +246,7 @@ void eListboxStringContent::setList(std::list &list) m_list = list; m_size = list.size(); cursorHome(); + m_listbox->entryReset(); } ////////////////////////////////////// @@ -366,9 +367,8 @@ void eListboxPythonStringContent::setList(PyObject *list) Py_INCREF(m_list); } - //always invalidate when we get a new list if (m_listbox) - m_listbox->invalidate(); + m_listbox->entryReset(); } PyObject *eListboxPythonStringContent::getCurrentSelection() -- cgit v1.2.3