Removed a couple of friendships, commented/removed unused stuff

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12863 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2005-05-28 13:20:05 +00:00
parent e09808e0d4
commit 7f2831b56b
4 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ port_id gAppServerPort;
AppServer *app_server=NULL; AppServer *app_server=NULL;
//! Default background color for workspaces //! Default background color for workspaces
RGBColor workspace_default_color(51,102,160); //RGBColor workspace_default_color(51,102,160);
//! System-wide GUI color object //! System-wide GUI color object
ColorSet gui_colorset; ColorSet gui_colorset;
+5 -7
View File
@@ -121,8 +121,6 @@ ServerApp::ServerApp(port_id sendport, port_id rcvport, port_id clientLooperPort
fAppCursor->SetOwningTeam(fClientTeamID); fAppCursor->SetOwningTeam(fClientTeamID);
} }
// fLockSem = create_sem(1, "ServerApp sem");
Run(); Run();
STRACE(("ServerApp %s:\n", fSignature.String())); STRACE(("ServerApp %s:\n", fSignature.String()));
@@ -240,7 +238,7 @@ ServerApp::PostMessage(int32 code)
/*! /*!
\brief Send a message to the ServerApp's BApplication \brief Send a message to the ServerApp's BApplication
\param msg The message to send \param msg The message to send
*/ *//*
void void
ServerApp::SendMessageToClient(const BMessage *msg) const ServerApp::SendMessageToClient(const BMessage *msg) const
{ {
@@ -254,7 +252,7 @@ ServerApp::SendMessageToClient(const BMessage *msg) const
delete [] buffer; delete [] buffer;
} }
*/
/*! /*!
\brief Sets the ServerApp's active status \brief Sets the ServerApp's active status
\param value The new status of the ServerApp. \param value The new status of the ServerApp.
@@ -430,7 +428,7 @@ ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
for(int32 i=0; i<fSWindowList->CountItems(); i++) for(int32 i=0; i<fSWindowList->CountItems(); i++)
{ {
win=(ServerWindow*)fSWindowList->ItemAt(i); win=(ServerWindow*)fSWindowList->ItemAt(i);
win->fWinBorder->UpdateColors(); win->GetWinBorder->UpdateColors();
win->SendMessageToClient(AS_UPDATE_COLORS, msg); win->SendMessageToClient(AS_UPDATE_COLORS, msg);
} }
*/ break; */ break;
@@ -447,7 +445,7 @@ ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
for(int32 i=0; i<fSWindowList->CountItems(); i++) for(int32 i=0; i<fSWindowList->CountItems(); i++)
{ {
win=(ServerWindow*)fSWindowList->ItemAt(i); win=(ServerWindow*)fSWindowList->ItemAt(i);
win->fWinBorder->UpdateFont(); win->GetWinBorder->UpdateFont();
win->SendMessageToClient(AS_UPDATE_FONTS, msg); win->SendMessageToClient(AS_UPDATE_FONTS, msg);
} }
*/ break; */ break;
@@ -571,7 +569,7 @@ ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
{ {
win = (ServerWindow*)fSWindowList->ItemAt(i); win = (ServerWindow*)fSWindowList->ItemAt(i);
win->Lock(); win->Lock();
win->fWinBorder->UpdateDecorator(); const_cast<WinBorder *>(win->GetWinBorder())->UpdateDecorator();
win->Unlock(); win->Unlock();
} }
break; break;
+3 -1
View File
@@ -100,7 +100,8 @@ private:
// port we receive messages from our BApplication // port we receive messages from our BApplication
port_id fMessagePort; port_id fMessagePort;
// TODO: find out why there is both the app port and the looper port. Do // TODO: find out why there is both the app port and the looper port. Do
// we really need both? // we really need both? Actually, we aren't using any of these ports,
// as BAppServerLink/BPortlink's messages always contain the reply port
// To send a message to the client, write a BMessage to this port // To send a message to the client, write a BMessage to this port
port_id fClientLooperPort; port_id fClientLooperPort;
@@ -121,6 +122,7 @@ private:
ServerCursor *fAppCursor; ServerCursor *fAppCursor;
// TODO: Not used.
sem_id fLockSem; sem_id fLockSem;
bool fCursorHidden; bool fCursorHidden;
-2
View File
@@ -131,9 +131,7 @@ private:
int32 xOffset, int32 yOffset) const; int32 xOffset, int32 yOffset) const;
protected: protected:
friend class ServerApp;
friend class WinBorder; friend class WinBorder;
friend class Screen;
friend class Layer; friend class Layer;
char fName[50]; char fName[50];