aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-05-06 18:04:14 (GMT)
committermathias <mathias>2005-05-06 18:04:14 (GMT)
commit4338fbec76d8ca822dcb21c66b6d8e492ee49020 (patch)
treed99a44d5269b244e9fcea2bbddcd170ae91df6e6 /src/Window.cc
parent783a3903759117112e4120a5ff47b59f2a67cf06 (diff)
downloadfluxbox_pavel-4338fbec76d8ca822dcb21c66b6d8e492ee49020.zip
fluxbox_pavel-4338fbec76d8ca822dcb21c66b6d8e492ee49020.tar.bz2
Added new Buttons for the Titlebar of a Window (Mathias)
- Shade - just like the "Stick"-button Styleresources: window.shade.pixmap, window.shade.unfocus.pixmap, window.shade.pressed.pixmap window.unshade.pixmap, window.unshade.unfocus.pixmap, window.unshade.pressed.pixmap etc. - MenuIcon - click on it provides the windowmenu, if the app contains a pixmap (gvim, konqueror etc etc) the pixmap is displayed, a little menu otherwise. Styleresources: windowmenu.pixmap, windowmenu.unfocus.pixmap windowmenu.pressed.pixmap etc. Example ~/.fluxbox/init - entry: session.titlebar.left: MenuIcon Stick session.titlebar.right: Shade Minimize Maximize Close hint: if the app HAS a pixmap i use window.title.focus.pixmap (look WinButtonTheme for reference)in pixmap-based-styles. this looks excellent and dont need much extra-code to pipe that info into WinButtons.
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 08a87ab..2c7103b 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3834,7 +3834,18 @@ void FluxboxWindow::setupWindow() {
3834 WinButton::SHADE, 3834 WinButton::SHADE,
3835 frame().titlebar(), 3835 frame().titlebar(),
3836 0, 0, 10, 10); 3836 0, 0, 10, 10);
3837 stateSig().attach(winbtn);
3837 winbtn->setOnClick(shade_cmd); 3838 winbtn->setOnClick(shade_cmd);
3839 newbutton = winbtn;
3840 } else if ((*dir)[i] == Fluxbox::MENUICON) {
3841 WinButton* winbtn = new WinButton(*this, winbutton_theme,
3842 WinButton::MENUICON,
3843 frame().titlebar(),
3844 0, 0, 10, 10);
3845 hintSig().attach(winbtn);
3846 titleSig().attach(winbtn);
3847 winbtn->setOnClick(show_menu_cmd);
3848 newbutton = winbtn;
3838 } 3849 }
3839 3850
3840 if (newbutton != 0) { 3851 if (newbutton != 0) {