API tweaks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4984 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -339,13 +339,25 @@ status_t CursorSet::FindCursor(cursor_which which, ServerCursor **cursor)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Returns the name of the set
|
||||
\return The name of the set
|
||||
*/
|
||||
const char *CursorSet::GetName(void)
|
||||
{
|
||||
BString name;
|
||||
if(FindString("name",&name)==B_OK)
|
||||
return name.String();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Renames the cursor set
|
||||
\param name new name of the set.
|
||||
|
||||
This function will fail if given a NULL name
|
||||
*/
|
||||
void CursorSet::Rename(const char *name)
|
||||
void CursorSet::SetName(const char *name)
|
||||
{
|
||||
if(!name)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user