provide access to the desktop names
Dana Jansens danakj@orodu.net
2 files changed,
7 insertions(+),
0 deletions(-)
M
src/screen.cc
→
src/screen.cc
@@ -867,6 +867,11 @@ otk::Property::atoms.net_desktop_names,
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 { assert(desktop < _num_desktops || desktop == 0xffffffff);
M
src/screen.hh
→
src/screen.hh
@@ -224,6 +224,8 @@ If the index is too large, it is simply ignored.
*/ void setDesktopName(unsigned int i, const otk::ustring &name); + otk::ustring desktopName(unsigned int i) const; + void installColormap(bool install) const; virtual void propertyHandler(const XPropertyEvent &e);