diff options
Diffstat (limited to 'src/Xinerama.hh')
-rw-r--r-- | src/Xinerama.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Xinerama.hh b/src/Xinerama.hh index 876005f..9d7941b 100644 --- a/src/Xinerama.hh +++ b/src/Xinerama.hh | |||
@@ -92,7 +92,6 @@ void XineramaHeadMenu<ItemType>::reloadHeads() | |||
92 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 92 | FbTk::RefCount<FbTk::Command<void> > saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
93 | *Fluxbox::instance(), | 93 | *Fluxbox::instance(), |
94 | &Fluxbox::save_rc)); | 94 | &Fluxbox::save_rc)); |
95 | char tname[128]; | ||
96 | for (int i=1; i <= m_screen.numHeads(); ++i) { | 95 | for (int i=1; i <= m_screen.numHeads(); ++i) { |
97 | // TODO: nls | 96 | // TODO: nls |
98 | /* | 97 | /* |
@@ -102,9 +101,10 @@ void XineramaHeadMenu<ItemType>::reloadHeads() | |||
102 | FBNLS::XineramaDefaultHeadFormat, | 101 | FBNLS::XineramaDefaultHeadFormat, |
103 | "Head %d"), i); //m_id starts at 0 | 102 | "Head %d"), i); //m_id starts at 0 |
104 | */ | 103 | */ |
105 | sprintf(tname, "Head %d", i); | 104 | std::string tname("Head "); |
105 | tname += FbTk::StringUtil::number2String(i); | ||
106 | insert(new XineramaHeadMenuItem<ItemType>( | 106 | insert(new XineramaHeadMenuItem<ItemType>( |
107 | tname, m_object, i, saverc_cmd)); | 107 | tname.c_str(), m_object, i, saverc_cmd)); |
108 | } | 108 | } |
109 | // TODO: nls | 109 | // TODO: nls |
110 | insert(new XineramaHeadMenuItem<ItemType>( | 110 | insert(new XineramaHeadMenuItem<ItemType>( |