diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/Xinerama.hh | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/Xinerama.hh')
-rw-r--r-- | src/Xinerama.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xinerama.hh b/src/Xinerama.hh index 4e7d06f..f58b4f0 100644 --- a/src/Xinerama.hh +++ b/src/Xinerama.hh | |||
@@ -40,7 +40,7 @@ template <typename ItemType> | |||
40 | class XineramaHeadMenuItem : public FbTk::MenuItem { | 40 | class XineramaHeadMenuItem : public FbTk::MenuItem { |
41 | public: | 41 | public: |
42 | XineramaHeadMenuItem(const FbTk::FbString &label, ItemType &object, int headnum, | 42 | XineramaHeadMenuItem(const FbTk::FbString &label, ItemType &object, int headnum, |
43 | FbTk::RefCount<FbTk::Command> &cmd): | 43 | FbTk::RefCount<FbTk::Command<void> > &cmd): |
44 | FbTk::MenuItem(label,cmd), m_object(object), m_headnum(headnum) {} | 44 | FbTk::MenuItem(label,cmd), m_object(object), m_headnum(headnum) {} |
45 | XineramaHeadMenuItem(const FbTk::FbString &label, ItemType &object, int headnum): | 45 | XineramaHeadMenuItem(const FbTk::FbString &label, ItemType &object, int headnum): |
46 | FbTk::MenuItem(label), m_object(object), m_headnum(headnum) {} | 46 | FbTk::MenuItem(label), m_object(object), m_headnum(headnum) {} |
@@ -79,7 +79,7 @@ XineramaHeadMenu<ItemType>::XineramaHeadMenu( | |||
79 | m_object(item) | 79 | m_object(item) |
80 | { | 80 | { |
81 | setLabel(title); | 81 | setLabel(title); |
82 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 82 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
83 | *Fluxbox::instance(), | 83 | *Fluxbox::instance(), |
84 | &Fluxbox::save_rc)); | 84 | &Fluxbox::save_rc)); |
85 | char tname[128]; | 85 | char tname[128]; |