provide access to the desktop names
This commit is contained in:
parent
d993bcd9ad
commit
b18959e1bd
2 changed files with 7 additions and 0 deletions
|
@ -867,6 +867,11 @@ void Screen::setDesktopName(unsigned int i, const otk::ustring &name)
|
||||||
otk::Property::utf8, newnames);
|
otk::Property::utf8, newnames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
otk::ustring Screen::desktopName(unsigned int i) const
|
||||||
|
{
|
||||||
|
if (i >= _num_desktops) return "";
|
||||||
|
return _desktop_names[i];
|
||||||
|
}
|
||||||
|
|
||||||
const otk::Rect& Screen::area(unsigned int desktop) const {
|
const otk::Rect& Screen::area(unsigned int desktop) const {
|
||||||
assert(desktop < _num_desktops || desktop == 0xffffffff);
|
assert(desktop < _num_desktops || desktop == 0xffffffff);
|
||||||
|
|
|
@ -224,6 +224,8 @@ public:
|
||||||
*/
|
*/
|
||||||
void setDesktopName(unsigned int i, const otk::ustring &name);
|
void setDesktopName(unsigned int i, const otk::ustring &name);
|
||||||
|
|
||||||
|
otk::ustring desktopName(unsigned int i) const;
|
||||||
|
|
||||||
void installColormap(bool install) const;
|
void installColormap(bool install) const;
|
||||||
|
|
||||||
virtual void propertyHandler(const XPropertyEvent &e);
|
virtual void propertyHandler(const XPropertyEvent &e);
|
||||||
|
|
Loading…
Reference in a new issue