... actually, "unnest" the rest of the file as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28095 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -216,7 +216,10 @@ PadView::MouseUp(BPoint where)
|
||||
void
|
||||
PadView::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)
|
||||
{
|
||||
if (MainWindow* window = dynamic_cast<MainWindow*>(Window())) {
|
||||
MainWindow* window = dynamic_cast<MainWindow*>(Window());
|
||||
if (window == NULL)
|
||||
return;
|
||||
|
||||
if (fDragging) {
|
||||
window->MoveTo(ConvertToScreen(where) - fDragOffset);
|
||||
} else if (window->AutoRaise()) {
|
||||
@@ -250,7 +253,6 @@ PadView::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// AddButton
|
||||
void
|
||||
@@ -280,7 +282,10 @@ PadView::ButtonAt(int32 index) const
|
||||
void
|
||||
PadView::DisplayMenu(BPoint where, LaunchButton* button) const
|
||||
{
|
||||
if (MainWindow* window = dynamic_cast<MainWindow*>(Window())) {
|
||||
MainWindow* window = dynamic_cast<MainWindow*>(Window());
|
||||
if (window == NULL)
|
||||
return;
|
||||
|
||||
LaunchButton* nearestButton = button;
|
||||
if (!nearestButton) {
|
||||
// find the nearest button
|
||||
@@ -390,7 +395,6 @@ PadView::DisplayMenu(BPoint where, LaunchButton* button) const
|
||||
mouseRect.InsetBy(-4.0, -4.0);
|
||||
menu->Go(where, true, false, mouseRect, true);
|
||||
}
|
||||
}
|
||||
|
||||
// SetOrientation
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user