[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] haiku: hrev44085 - src/kits/interface
From: clemens.zeidler () googlemail ! com
Date: 2012-04-30 23:03:59
Message-ID: 20120430230359.C87135C0B77 () vmrepo ! haiku-os ! org
[Download RAW message or body]
hrev44085 adds 1 changeset to branch 'master'
old head: a2e15b244f9428b61588006f9e048dea845ce24a
new head: a937ffd238367dee5036096658c6c360c1e23136
----------------------------------------------------------------------------
a937ffd: Make the menu window not resizable.
Right clicking the menu border showed the resize arrow and sometimes even made it \
possible to resize the menu.
[ czeidler <haiku@clemens-zeidler.de> ]
----------------------------------------------------------------------------
Revision: hrev44085
Commit: a937ffd238367dee5036096658c6c360c1e23136
URL: http://cgit.haiku-os.org/haiku/commit/?id=a937ffd
Author: czeidler <haiku@clemens-zeidler.de>
Date: Mon Apr 30 22:59:22 2012 UTC
----------------------------------------------------------------------------
1 file changed, 5 insertions(+), 3 deletions(-)
src/kits/interface/MenuWindow.cpp | 8 +++++---
----------------------------------------------------------------------------
diff --git a/src/kits/interface/MenuWindow.cpp b/src/kits/interface/MenuWindow.cpp
index ad29e64..b568f75 100644
--- a/src/kits/interface/MenuWindow.cpp
+++ b/src/kits/interface/MenuWindow.cpp
@@ -233,7 +233,8 @@ BMenuFrame::Draw(BRect updateRect)
if (be_control_look != NULL)
return;
- SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_DARKEN_2_TINT));
+ SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR),
+ B_DARKEN_2_TINT));
BRect bounds(Bounds());
StrokeLine(BPoint(bounds.right, bounds.top),
@@ -249,8 +250,9 @@ BMenuFrame::Draw(BRect updateRect)
BMenuWindow::BMenuWindow(const char *name)
// The window will be resized by BMenu, so just pass a dummy rect
- : BWindow(BRect(0, 0, 0, 0), name, B_BORDERED_WINDOW_LOOK, kMenuWindowFeel,
- B_NOT_MOVABLE | B_NOT_ZOOMABLE | B_AVOID_FOCUS
+ :
+ BWindow(BRect(0, 0, 0, 0), name, B_BORDERED_WINDOW_LOOK, kMenuWindowFeel,
+ B_NOT_MOVABLE | B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_AVOID_FOCUS
| kAcceptKeyboardFocusFlag),
fMenu(NULL),
fMenuFrame(NULL),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic