aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/IconButton.cc1
-rw-r--r--src/IconButton.hh3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index d1f1451..d2bf4d3 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -238,6 +238,7 @@ void IconButton::refreshEverything(bool setup) {
238 238
239void IconButton::clientTitleChanged() { 239void IconButton::clientTitleChanged() {
240 refreshEverything(true); 240 refreshEverything(true);
241 m_title_changed.emit();
241 242
242 if (m_has_tooltip) 243 if (m_has_tooltip)
243 showTooltip(); 244 showTooltip();
diff --git a/src/IconButton.hh b/src/IconButton.hh
index 36781d1..957374e 100644
--- a/src/IconButton.hh
+++ b/src/IconButton.hh
@@ -64,6 +64,8 @@ public:
64 64
65 bool setOrientation(FbTk::Orientation orient); 65 bool setOrientation(FbTk::Orientation orient);
66 66
67 const FbTk::Signal<> &titleChanged() { return m_title_changed; }
68
67protected: 69protected:
68 void drawText(int x, int y, FbTk::FbDrawable *drawable_override); 70 void drawText(int x, int y, FbTk::FbDrawable *drawable_override);
69private: 71private:
@@ -89,6 +91,7 @@ private:
89 // cached pixmaps 91 // cached pixmaps
90 FbTk::CachedPixmap m_pm; 92 FbTk::CachedPixmap m_pm;
91 FbTk::SignalTracker m_signals; 93 FbTk::SignalTracker m_signals;
94 FbTk::Signal<> m_title_changed;
92}; 95};
93 96
94#endif // ICONBUTTON_HH 97#endif // ICONBUTTON_HH