summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-10 23:28:56 +0000
committerDana Jansens <danakj@orodu.net>2003-02-10 23:28:56 +0000
commitb18959e1bda52f807f62c95772c69ce3005215a7 (patch)
tree411965fec036d9cdde1718d84d4792ea5f5efd6f /src
parentd993bcd9ad035a4f38cb7a3733586ee36bf2dfc9 (diff)
provide access to the desktop names
Diffstat (limited to 'src')
-rw-r--r--src/screen.cc5
-rw-r--r--src/screen.hh2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/screen.cc b/src/screen.cc
index 0c90d747..f5cc0092 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -867,6 +867,11 @@ void Screen::setDesktopName(unsigned int i, const otk::ustring &name)
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);
diff --git a/src/screen.hh b/src/screen.hh
index 55518fc9..4eb81d4a 100644
--- a/src/screen.hh
+++ b/src/screen.hh
@@ -224,6 +224,8 @@ public:
*/
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);