As pointed out by korli use the PostMessage function that takes a code directly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7fd711ef99
commit
5ceb49c12d
@ -442,10 +442,8 @@ TBarView::ChangeState(int32 state, bool vertical, bool left, bool top)
|
|||||||
|
|
||||||
// Send a message to the preferences window to let it know to enable
|
// Send a message to the preferences window to let it know to enable
|
||||||
// or disabled preference items
|
// or disabled preference items
|
||||||
if (stateChanged || vertSwap) {
|
if (stateChanged || vertSwap)
|
||||||
BMessage message(kStateChanged);
|
be_app->PostMessage(kStateChanged);
|
||||||
be_app->PostMessage(&message);
|
|
||||||
}
|
|
||||||
|
|
||||||
BRect screenFrame = (BScreen(Window())).Frame();
|
BRect screenFrame = (BScreen(Window())).Frame();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user