Added some todo items, cleanups. Removed the frame parameter from BMenuWindow as it's not needed.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10573 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2005-01-03 16:05:05 +00:00
parent a565beb2d9
commit 1664b981f2
2 changed files with 46 additions and 50 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
//------------------------------------------------------------------------------
// Copyright (c) 2001-2004, Haiku, Inc.
// Copyright (c) 2001-2005, Haiku, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
@@ -34,14 +34,14 @@
// this should go to some private header.
const window_feel kMenuWindowFeel = (window_feel)1025;
BMenuWindow::BMenuWindow(BRect frame, BMenu *menu)
BMenuWindow::BMenuWindow(BMenu *menu)
:
BWindow(frame, "Menu", B_NO_BORDER_WINDOW_LOOK, kMenuWindowFeel,
// The window will be resized by BMenu, so just pass a dummy rect
BWindow(BRect(0, 0, 0, 0), "Menu", B_NO_BORDER_WINDOW_LOOK, kMenuWindowFeel,
B_NOT_ZOOMABLE)
{
fMenu = menu;
AddChild(fMenu);
ResizeTo(fMenu->Bounds().Width() + 1, fMenu->Bounds().Height() + 1);
fMenu->MakeFocus(true);
}