summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-11-27 14:31:28 (GMT)
committerfluxgen <fluxgen>2003-11-27 14:31:28 (GMT)
commitf4ce6f226c73469c3d628d4a169f3a9abf94b5b1 (patch)
tree6ed2a4f945333c2018031030137d970be764932d
parent5ce35d9fa811358162ae44ee1ca514270d7da466 (diff)
downloadfluxbox_lack-f4ce6f226c73469c3d628d4a169f3a9abf94b5b1.zip
fluxbox_lack-f4ce6f226c73469c3d628d4a169f3a9abf94b5b1.tar.bz2
fixed multi button menu item for maximize item
-rw-r--r--src/Window.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 90d4b19..fc7a59b 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.244 2003/11/19 12:57:27 rathnor Exp $ 25// $Id: Window.cc,v 1.245 2003/11/27 14:31:28 fluxgen Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -31,6 +31,8 @@
31#include "FbTk/TextButton.hh" 31#include "FbTk/TextButton.hh"
32#include "FbTk/Compose.hh" 32#include "FbTk/Compose.hh"
33#include "FbTk/EventManager.hh" 33#include "FbTk/EventManager.hh"
34#include "FbTk/MultiButtonMenuItem.hh"
35
34 36
35#include "WinClient.hh" 37#include "WinClient.hh"
36#include "I18n.hh" 38#include "I18n.hh"
@@ -3431,9 +3433,15 @@ void FluxboxWindow::setupWindow() {
3431 // set new menu items 3433 // set new menu items
3432 menu.insert("Shade", shade_cmd); 3434 menu.insert("Shade", shade_cmd);
3433 menu.insert("Stick", stick_cmd); 3435 menu.insert("Stick", stick_cmd);
3434 menu.insert("Maximize", maximize_cmd); 3436 // create maximize item with:
3435 menu.insert("Maximize Vertical", maximize_vert_cmd); 3437 // button1: Maximize normal
3436 menu.insert("Maximize Horizontal", maximize_horiz_cmd); 3438 // button2: Maximize Vertical
3439 // button3: Maximize Horizontal
3440 FbTk::MultiButtonMenuItem *maximize_item = new FbTk::MultiButtonMenuItem(3, "Maximize");
3441 maximize_item->setCommand(1, maximize_cmd);
3442 maximize_item->setCommand(2, maximize_vert_cmd);
3443 maximize_item->setCommand(3, maximize_horiz_cmd);
3444 menu.insert(maximize_item);
3437 menu.insert("Iconify", iconify_cmd); 3445 menu.insert("Iconify", iconify_cmd);
3438 menu.insert("Raise", raise_cmd); 3446 menu.insert("Raise", raise_cmd);
3439 menu.insert("Lower", lower_cmd); 3447 menu.insert("Lower", lower_cmd);