diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-05-07 20:41:59 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-05-10 11:00:46 (GMT) |
commit | 57acca0b601277982e63fa34eb78ae7881873e09 (patch) | |
tree | a8f83a2a954b4bf2c8247683b61c25ac94f32cf2 /src/ToolbarItem.hh | |
parent | 79d526b968b0e8cec31a66b0eafa8ddeb32cc16e (diff) | |
download | fluxbox-57acca0b601277982e63fa34eb78ae7881873e09.zip fluxbox-57acca0b601277982e63fa34eb78ae7881873e09.tar.bz2 |
Convert ToolbarItem::resizeSig to FbTk::Signal
Diffstat (limited to 'src/ToolbarItem.hh')
-rw-r--r-- | src/ToolbarItem.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ToolbarItem.hh b/src/ToolbarItem.hh index f5d1a2a..bd5b38f 100644 --- a/src/ToolbarItem.hh +++ b/src/ToolbarItem.hh | |||
@@ -23,7 +23,7 @@ | |||
23 | #ifndef TOOLBARITEM_HH | 23 | #ifndef TOOLBARITEM_HH |
24 | #define TOOLBARITEM_HH | 24 | #define TOOLBARITEM_HH |
25 | 25 | ||
26 | #include "FbTk/Subject.hh" | 26 | #include "FbTk/Signal.hh" |
27 | #include "FbTk/Orientation.hh" | 27 | #include "FbTk/Orientation.hh" |
28 | 28 | ||
29 | /// An item in the toolbar that has either fixed or relative size to the toolbar | 29 | /// An item in the toolbar that has either fixed or relative size to the toolbar |
@@ -62,7 +62,7 @@ public: | |||
62 | // just update theme items that affect the size | 62 | // just update theme items that affect the size |
63 | virtual void updateSizing() = 0; | 63 | virtual void updateSizing() = 0; |
64 | 64 | ||
65 | FbTk::Subject &resizeSig() { return m_resize_sig; } | 65 | FbTk::Signal<> &resizeSig() { return m_resize_sig; } |
66 | 66 | ||
67 | void setType(Type type) { m_type = type; } | 67 | void setType(Type type) { m_type = type; } |
68 | Type type() const { return m_type; } | 68 | Type type() const { return m_type; } |
@@ -70,14 +70,12 @@ public: | |||
70 | FbTk::Orientation orientation() const { return m_orientation; } | 70 | FbTk::Orientation orientation() const { return m_orientation; } |
71 | virtual void setOrientation(FbTk::Orientation orient) { m_orientation = orient; } | 71 | virtual void setOrientation(FbTk::Orientation orient) { m_orientation = orient; } |
72 | 72 | ||
73 | class ToolbarItemSubject : public FbTk::Subject {}; | ||
74 | |||
75 | private: | 73 | private: |
76 | Type m_type; | 74 | Type m_type; |
77 | 75 | ||
78 | FbTk::Orientation m_orientation; | 76 | FbTk::Orientation m_orientation; |
79 | 77 | ||
80 | ToolbarItemSubject m_resize_sig; | 78 | FbTk::Signal<> m_resize_sig; |
81 | }; | 79 | }; |
82 | 80 | ||
83 | #endif // TOOLBARITEM_HH | 81 | #endif // TOOLBARITEM_HH |