diff options
Diffstat (limited to 'src/Xinerama.hh')
-rw-r--r-- | src/Xinerama.hh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Xinerama.hh b/src/Xinerama.hh index be50c95..1cc15aa 100644 --- a/src/Xinerama.hh +++ b/src/Xinerama.hh | |||
@@ -41,10 +41,10 @@ | |||
41 | template <typename ItemType> | 41 | template <typename ItemType> |
42 | class XineramaHeadMenuItem : public FbTk::MenuItem { | 42 | class XineramaHeadMenuItem : public FbTk::MenuItem { |
43 | public: | 43 | public: |
44 | XineramaHeadMenuItem(const char *label, ItemType &object, int headnum, | 44 | XineramaHeadMenuItem(const FbTk::FbString &label, ItemType &object, int headnum, |
45 | FbTk::RefCount<FbTk::Command> &cmd): | 45 | FbTk::RefCount<FbTk::Command> &cmd): |
46 | FbTk::MenuItem(label,cmd), m_object(object), m_headnum(headnum) {} | 46 | FbTk::MenuItem(label,cmd), m_object(object), m_headnum(headnum) {} |
47 | XineramaHeadMenuItem(const char *label, ItemType &object, int headnum): | 47 | XineramaHeadMenuItem(const FbTk::FbString &label, ItemType &object, int headnum): |
48 | FbTk::MenuItem(label), m_object(object), m_headnum(headnum) {} | 48 | FbTk::MenuItem(label), m_object(object), m_headnum(headnum) {} |
49 | 49 | ||
50 | bool isEnabled() const { return m_object.getOnHead() != m_headnum; } | 50 | bool isEnabled() const { return m_object.getOnHead() != m_headnum; } |
@@ -64,7 +64,7 @@ template <typename ItemType> | |||
64 | class XineramaHeadMenu : public FbMenu { | 64 | class XineramaHeadMenu : public FbMenu { |
65 | public: | 65 | public: |
66 | XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, | 66 | XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, |
67 | FbTk::XLayer &layer, ItemType &item, const char * title = 0); | 67 | FbTk::XLayer &layer, ItemType &item, const FbTk::FbString & title = ""); |
68 | 68 | ||
69 | private: | 69 | private: |
70 | ItemType &m_object; | 70 | ItemType &m_object; |
@@ -73,12 +73,11 @@ private: | |||
73 | 73 | ||
74 | template <typename ItemType> | 74 | template <typename ItemType> |
75 | XineramaHeadMenu<ItemType>::XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, | 75 | XineramaHeadMenu<ItemType>::XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, |
76 | FbTk::XLayer &layer, ItemType &item, const char * title): | 76 | FbTk::XLayer &layer, ItemType &item, const FbTk::FbString & title): |
77 | FbMenu(tm, imgctrl, layer), | 77 | FbMenu(tm, imgctrl, layer), |
78 | m_object(item) | 78 | m_object(item) |
79 | { | 79 | { |
80 | if (title) | 80 | setLabel(title); |
81 | setLabel(title); | ||
82 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 81 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
83 | *Fluxbox::instance(), | 82 | *Fluxbox::instance(), |
84 | &Fluxbox::save_rc)); | 83 | &Fluxbox::save_rc)); |