aboutsummaryrefslogtreecommitdiff
path: root/src/ClientMenu.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-05-03 21:48:24 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:45 (GMT)
commit129bac1e0f0979c80902edc8e092596b81fe14f6 (patch)
tree0624ee5da85ec2d1f758612cddae2e95a50249f9 /src/ClientMenu.hh
parent0775350fee345e37fb59835dda4d85664346b606 (diff)
downloadfluxbox-129bac1e0f0979c80902edc8e092596b81fe14f6.zip
fluxbox-129bac1e0f0979c80902edc8e092596b81fe14f6.tar.bz2
Convert Focusable::dieSig to FbTk::Signal
Diffstat (limited to 'src/ClientMenu.hh')
-rw-r--r--src/ClientMenu.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ClientMenu.hh b/src/ClientMenu.hh
index 61fd198..b40e122 100644
--- a/src/ClientMenu.hh
+++ b/src/ClientMenu.hh
@@ -25,7 +25,6 @@
25#include "FbMenu.hh" 25#include "FbMenu.hh"
26 26
27#include "FbTk/Signal.hh" 27#include "FbTk/Signal.hh"
28#include "FbTk/Observer.hh"
29 28
30class BScreen; 29class BScreen;
31class FluxboxWindow; 30class FluxboxWindow;
@@ -35,7 +34,7 @@ class Focusable;
35 * A menu holding a set of client menus. 34 * A menu holding a set of client menus.
36 * @see WorkspaceMenu 35 * @see WorkspaceMenu
37 */ 36 */
38class ClientMenu: public FbMenu, public FbTk::Observer { 37class ClientMenu: public FbMenu {
39public: 38public:
40 39
41 typedef std::list<FluxboxWindow *> Focusables; 40 typedef std::list<FluxboxWindow *> Focusables;
@@ -54,15 +53,15 @@ public:
54 /// Called when window title changed. 53 /// Called when window title changed.
55 void titleChanged(Focusable& win); 54 void titleChanged(Focusable& win);
56 55
56 /// Called when a client dies. Removes the corresponding menu item
57 void clientDied(Focusable& win);
58
57private: 59private:
58 60
59 void updateClientList(BScreen& screen) { 61 void updateClientList(BScreen& screen) {
60 refreshMenu(); 62 refreshMenu();
61 } 63 }
62 64
63 /// called when receiving a subject signal
64 void update(FbTk::Subject *subj);
65
66 Focusables &m_list; ///< clients in the menu 65 Focusables &m_list; ///< clients in the menu
67 FbTk::SignalTracker m_slots; ///< track all the slots 66 FbTk::SignalTracker m_slots; ///< track all the slots
68}; 67};