aboutsummaryrefslogtreecommitdiff
path: root/src/Xinerama.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-05-20 15:08:14 (GMT)
committersimonb <simonb>2006-05-20 15:08:14 (GMT)
commit0861f3a9073ccd016302af26ff992fa19331a02d (patch)
treef1a2276449a5fc9b27f2d1afa5ffff4410141345 /src/Xinerama.hh
parent5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff)
downloadfluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.zip
fluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.tar.bz2
improve native language handling, move messages and menu labels to
FbTk::FbString
Diffstat (limited to 'src/Xinerama.hh')
-rw-r--r--src/Xinerama.hh11
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 @@
41template <typename ItemType> 41template <typename ItemType>
42class XineramaHeadMenuItem : public FbTk::MenuItem { 42class XineramaHeadMenuItem : public FbTk::MenuItem {
43public: 43public:
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>
64class XineramaHeadMenu : public FbMenu { 64class XineramaHeadMenu : public FbMenu {
65public: 65public:
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
69private: 69private:
70 ItemType &m_object; 70 ItemType &m_object;
@@ -73,12 +73,11 @@ private:
73 73
74template <typename ItemType> 74template <typename ItemType>
75XineramaHeadMenu<ItemType>::XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, 75XineramaHeadMenu<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));