Minor cleanup: removed some unused commands.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16980 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -493,52 +493,8 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver& link)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case AS_UPDATE_COLORS:
|
// Decorator commands
|
||||||
{
|
|
||||||
// NOTE: R2: Eventually we will have windows which will notify their children of changes in
|
|
||||||
// system colors
|
|
||||||
|
|
||||||
/* STRACE(("ServerApp %s: Received global UI color update notification\n", Signature()));
|
|
||||||
ServerWindow *win;
|
|
||||||
BMessage msg(_COLORS_UPDATED);
|
|
||||||
|
|
||||||
for(int32 i = 0; i < fWindowList.CountItems(); i++) {
|
|
||||||
win=(ServerWindow*)fWindowList.ItemAt(i);
|
|
||||||
win->Window()->UpdateColors();
|
|
||||||
win->SendMessageToClient(AS_UPDATE_COLORS, msg);
|
|
||||||
}
|
|
||||||
*/ break;
|
|
||||||
}
|
|
||||||
case AS_UPDATE_FONTS:
|
|
||||||
{
|
|
||||||
// NOTE: R2: Eventually we will have windows which will notify their children of changes in
|
|
||||||
// system fonts
|
|
||||||
|
|
||||||
/* STRACE(("ServerApp %s: Received global font update notification\n", Signature()));
|
|
||||||
ServerWindow *win;
|
|
||||||
BMessage msg(_FONTS_UPDATED);
|
|
||||||
|
|
||||||
for(int32 i=0; i<fSWindowList->CountItems(); i++)
|
|
||||||
{
|
|
||||||
win=(ServerWindow*)fSWindowList->ItemAt(i);
|
|
||||||
win->Window()->UpdateFont();
|
|
||||||
win->SendMessageToClient(AS_UPDATE_FONTS, msg);
|
|
||||||
}
|
|
||||||
*/ break;
|
|
||||||
}
|
|
||||||
case AS_UPDATE_DECORATOR:
|
|
||||||
{
|
|
||||||
STRACE(("ServerApp %s: Received decorator update notification\n", Signature()));
|
|
||||||
|
|
||||||
// TODO: implement or remove AS_UPDATE_DECORATOR
|
|
||||||
/* for (int32 i = 0; i < fWindowList.CountItems(); i++) {
|
|
||||||
ServerWindow *window = fWindowList.ItemAt(i);
|
|
||||||
window->Lock();
|
|
||||||
const_cast<WindowLayer *>(window->Window())->UpdateDecorator();
|
|
||||||
window->Unlock();
|
|
||||||
}
|
|
||||||
*/ break;
|
|
||||||
}
|
|
||||||
case AS_SET_DECORATOR:
|
case AS_SET_DECORATOR:
|
||||||
{
|
{
|
||||||
// Received from an application when the user wants to set the window
|
// Received from an application when the user wants to set the window
|
||||||
|
|||||||
Reference in New Issue
Block a user