diff options
author | simonb <simonb> | 2006-05-20 15:08:14 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-20 15:08:14 (GMT) |
commit | 0861f3a9073ccd016302af26ff992fa19331a02d (patch) | |
tree | f1a2276449a5fc9b27f2d1afa5ffff4410141345 /src/Xinerama.hh | |
parent | 5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff) | |
download | fluxbox-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.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)); |