diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-03 19:46:52 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-06 15:09:29 (GMT) |
commit | a8b0b3632b4ed6e6fb5f8aa26a6c0ef151a30144 (patch) | |
tree | 0e5622774737e9e05d9e7e11b3639c617d071be0 | |
parent | f6e1f555f91059a0462db7d60b3a0923fed25652 (diff) | |
download | fluxbox-a8b0b3632b4ed6e6fb5f8aa26a6c0ef151a30144.zip fluxbox-a8b0b3632b4ed6e6fb5f8aa26a6c0ef151a30144.tar.bz2 |
signal title changes
so that interested parties (the iconbar ;-) can use/forward them
-rw-r--r-- | src/IconButton.cc | 1 | ||||
-rw-r--r-- | src/IconButton.hh | 3 |
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 | ||
239 | void IconButton::clientTitleChanged() { | 239 | void 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 | |||
67 | protected: | 69 | protected: |
68 | void drawText(int x, int y, FbTk::FbDrawable *drawable_override); | 70 | void drawText(int x, int y, FbTk::FbDrawable *drawable_override); |
69 | private: | 71 | private: |
@@ -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 |