signal title changes so that interested parties (the iconbar ;-) can use/forward them
Thomas Lübking thomas.luebking@gmail.com
2 files changed,
4 insertions(+),
0 deletions(-)
M
src/IconButton.cc
→
src/IconButton.cc
@@ -238,6 +238,7 @@ }
void IconButton::clientTitleChanged() { refreshEverything(true); + m_title_changed.emit(); if (m_has_tooltip) showTooltip();
M
src/IconButton.hh
→
src/IconButton.hh
@@ -64,6 +64,8 @@ const Focusable &win() const { return m_win; }
bool setOrientation(FbTk::Orientation orient); + const FbTk::Signal<> &titleChanged() { return m_title_changed; } + protected: void drawText(int x, int y, FbTk::FbDrawable *drawable_override); private:@@ -89,6 +91,7 @@ FocusableTheme<IconbarTheme> m_theme;
// cached pixmaps FbTk::CachedPixmap m_pm; FbTk::SignalTracker m_signals; + FbTk::Signal<> m_title_changed; }; #endif // ICONBUTTON_HH