]> Dogcows Code - chaz/openbox/commitdiff
provide access to the desktop names
authorDana Jansens <danakj@orodu.net>
Mon, 10 Feb 2003 23:28:56 +0000 (23:28 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 10 Feb 2003 23:28:56 +0000 (23:28 +0000)
src/screen.cc
src/screen.hh

index 0c90d747b9de86e63eeef0121e4e17fa0076b0c4..f5cc00922125f9068040504c56bf4ad456531913 100644 (file)
@@ -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);
index 55518fc93a2860312940ec6b6b5c026badbca092..4eb81d4aebd0b222beebf963f1fd48701ea543eb 100644 (file)
@@ -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);
This page took 0.030289 seconds and 4 git commands to generate.