diff options
author | rathnor <rathnor> | 2003-07-25 10:03:55 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-25 10:03:55 (GMT) |
commit | ac7edef9ad73818435420479a0dfa9c5ed517a79 (patch) | |
tree | 4fd531858253a00bd36689153e6c83c65890df39 /src/Xinerama.hh | |
parent | 9ca1f367cb9eef78ee1871fe5b96298f8325d987 (diff) | |
download | fluxbox-ac7edef9ad73818435420479a0dfa9c5ed517a79.zip fluxbox-ac7edef9ad73818435420479a0dfa9c5ed517a79.tar.bz2 |
make sure all menus have titles, make -version go to stdout
Diffstat (limited to 'src/Xinerama.hh')
-rw-r--r-- | src/Xinerama.hh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Xinerama.hh b/src/Xinerama.hh index 8bbd3d1..99c8705 100644 --- a/src/Xinerama.hh +++ b/src/Xinerama.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: Xinerama.hh,v 1.4 2003/07/19 11:55:49 rathnor Exp $ | 23 | // $Id: Xinerama.hh,v 1.5 2003/07/25 10:03:55 rathnor Exp $ |
24 | 24 | ||
25 | #ifndef XINERAMA_HH | 25 | #ifndef XINERAMA_HH |
26 | #define XINERAMA_HH | 26 | #define XINERAMA_HH |
@@ -65,7 +65,7 @@ template <typename ItemType> | |||
65 | class XineramaHeadMenu : public FbMenu { | 65 | class XineramaHeadMenu : public FbMenu { |
66 | public: | 66 | public: |
67 | XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, | 67 | XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, |
68 | FbTk::XLayer &layer, ItemType &item); | 68 | FbTk::XLayer &layer, ItemType &item, const char * title); |
69 | 69 | ||
70 | private: | 70 | private: |
71 | ItemType &m_object; | 71 | ItemType &m_object; |
@@ -74,11 +74,12 @@ private: | |||
74 | 74 | ||
75 | template <typename ItemType> | 75 | template <typename ItemType> |
76 | XineramaHeadMenu<ItemType>::XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, | 76 | XineramaHeadMenu<ItemType>::XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, |
77 | FbTk::XLayer &layer, ItemType &item): | 77 | FbTk::XLayer &layer, ItemType &item, const char * title = 0): |
78 | FbMenu(tm, screen.screenNumber(), imgctrl, layer), | 78 | FbMenu(tm, screen.screenNumber(), imgctrl, layer), |
79 | m_object(item) | 79 | m_object(item) |
80 | { | 80 | { |
81 | 81 | if (title) | |
82 | setLabel(title); | ||
82 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( | 83 | FbTk::RefCount<FbTk::Command> saverc_cmd(new FbTk::SimpleCommand<Fluxbox>( |
83 | *Fluxbox::instance(), | 84 | *Fluxbox::instance(), |
84 | &Fluxbox::save_rc)); | 85 | &Fluxbox::save_rc)); |