aboutsummaryrefslogtreecommitdiff
path: root/src/Xinerama.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-07-25 10:03:55 (GMT)
committerrathnor <rathnor>2003-07-25 10:03:55 (GMT)
commitac7edef9ad73818435420479a0dfa9c5ed517a79 (patch)
tree4fd531858253a00bd36689153e6c83c65890df39 /src/Xinerama.hh
parent9ca1f367cb9eef78ee1871fe5b96298f8325d987 (diff)
downloadfluxbox-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.hh9
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>
65class XineramaHeadMenu : public FbMenu { 65class XineramaHeadMenu : public FbMenu {
66public: 66public:
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
70private: 70private:
71 ItemType &m_object; 71 ItemType &m_object;
@@ -74,11 +74,12 @@ private:
74 74
75template <typename ItemType> 75template <typename ItemType>
76XineramaHeadMenu<ItemType>::XineramaHeadMenu(MenuTheme &tm, BScreen &screen, FbTk::ImageControl &imgctrl, 76XineramaHeadMenu<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));