aboutsummaryrefslogtreecommitdiff
path: root/src/Resources.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/Resources.cc
parent783a3903759117112e4120a5ff47b59f2a67cf06 (diff)
downloadfluxbox-4338fbec76d8ca822dcb21c66b6d8e492ee49020.zip
fluxbox-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/Resources.cc')
-rw-r--r--src/Resources.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Resources.cc b/src/Resources.cc
index 8b5d31f..ae0d72a 100644
--- a/src/Resources.cc
+++ b/src/Resources.cc
@@ -75,8 +75,8 @@ setFromString(char const *strval) {
75 m_value.push_back(Fluxbox::SHADE); 75 m_value.push_back(Fluxbox::SHADE);
76 else if (strcasecmp(val[i].c_str(), "Stick")==0) 76 else if (strcasecmp(val[i].c_str(), "Stick")==0)
77 m_value.push_back(Fluxbox::STICK); 77 m_value.push_back(Fluxbox::STICK);
78 else if (strcasecmp(val[i].c_str(), "Menu")==0) 78 else if (strcasecmp(val[i].c_str(), "MenuIcon")==0)
79 m_value.push_back(Fluxbox::MENU); 79 m_value.push_back(Fluxbox::MENUICON);
80 else if (strcasecmp(val[i].c_str(), "Close")==0) 80 else if (strcasecmp(val[i].c_str(), "Close")==0)
81 m_value.push_back(Fluxbox::CLOSE); 81 m_value.push_back(Fluxbox::CLOSE);
82 } 82 }
@@ -150,8 +150,8 @@ getString() {
150 case Fluxbox::STICK: 150 case Fluxbox::STICK:
151 retval.append("Stick"); 151 retval.append("Stick");
152 break; 152 break;
153 case Fluxbox::MENU: 153 case Fluxbox::MENUICON:
154 retval.append("Menu"); 154 retval.append("MenuIcon");
155 break; 155 break;
156 default: 156 default:
157 break; 157 break;