diff options
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index d2bf4d3..4997365 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -51,8 +51,12 @@ IconButton::IconButton(const FbTk::FbWindow &parent, | |||
51 | m_theme(win, focused_theme, unfocused_theme), | 51 | m_theme(win, focused_theme, unfocused_theme), |
52 | m_pm(win.screen().imageControl()) { | 52 | m_pm(win.screen().imageControl()) { |
53 | 53 | ||
54 | m_title_update_timer.setTimeout(100 * FbTk::FbTime::IN_MILLISECONDS); | ||
55 | m_title_update_timer.fireOnce(true); | ||
56 | FbTk::RefCount<FbTk::Command<void> > ets(new FbTk::SimpleCommand<IconButton>(*this, &IconButton::clientTitleChanged)); | ||
57 | m_title_update_timer.setCommand(ets); | ||
54 | m_signals.join(m_win.titleSig(), | 58 | m_signals.join(m_win.titleSig(), |
55 | MemFunIgnoreArgs(*this, &IconButton::clientTitleChanged)); | 59 | MemFunIgnoreArgs(m_title_update_timer, &FbTk::Timer::start)); |
56 | 60 | ||
57 | m_signals.join(m_win.focusSig(), | 61 | m_signals.join(m_win.focusSig(), |
58 | MemFunIgnoreArgs(*this, &IconButton::reconfigAndClear)); | 62 | MemFunIgnoreArgs(*this, &IconButton::reconfigAndClear)); |