diff --git a/src/IconButton.cc b/src/IconButton.cc index d1f14514..d2bf4d30 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc @@ -238,6 +238,7 @@ void IconButton::refreshEverything(bool setup) { void IconButton::clientTitleChanged() { refreshEverything(true); + m_title_changed.emit(); if (m_has_tooltip) showTooltip(); diff --git a/src/IconButton.hh b/src/IconButton.hh index 36781d12..957374e4 100644 --- a/src/IconButton.hh +++ b/src/IconButton.hh @@ -64,6 +64,8 @@ public: 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 @@ private: // cached pixmaps FbTk::CachedPixmap m_pm; FbTk::SignalTracker m_signals; + FbTk::Signal<> m_title_changed; }; #endif // ICONBUTTON_HH