CThemes: try to fix possible artefacts after changed theme

This ensures a clean screen before repaint after changed theme.

In some constellations (eg. with color gradient) it was possible to
see some old artefacts inside widget items, eg. in header.
This should avoid this.
Small disadvantage: screen needs complete repaint after changed theme, but
this should be not a problem in this case.


Origin commit data
------------------
Commit: bb216f975c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-11 (Sun, 11 Sep 2016)
This commit is contained in:
2016-09-11 22:17:08 +02:00
parent 2a17c30cd4
commit f5076147b7

View File

@@ -150,6 +150,8 @@ int CThemes::Show()
std::string file_name = "";
CMenuWidget themes (LOCALE_COLORMENU_MENUCOLORS, NEUTRINO_ICON_SETTINGS, width);
sigc::slot0<void> slot_repaint = sigc::mem_fun(themes, &CMenuWidget::hide); //we want to clean screen before repaint after changed Option
themes.OnBeforePaint.connect(slot_repaint);
themes.addIntroItems(LOCALE_COLORTHEMEMENU_HEAD2);