aboutsummaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/elistboxcontent.cpp6
-rw-r--r--lib/gui/elistboxcontent.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index f94765ef..63d94b09 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -384,6 +384,12 @@ void eListboxPythonStringContent::invalidateEntry(int index)
m_listbox->entryChanged(index);
}
+void eListboxPythonStringContent::invalidate()
+{
+ if (m_listbox)
+ m_listbox->entryReset();
+}
+
//////////////////////////////////////
void eListboxPythonConfigContent::paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected)
diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h
index cfd0f155..11a9d080 100644
--- a/lib/gui/elistboxcontent.h
+++ b/lib/gui/elistboxcontent.h
@@ -84,6 +84,7 @@ public:
PyObject *getCurrentSelection();
int getCurrentSelectionIndex() { return m_cursor; }
void invalidateEntry(int index);
+ void invalidate();
#ifndef SWIG
protected:
void cursorHome();