projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d993bcd
)
provide access to the desktop names
author
Dana Jansens
<danakj@orodu.net>
Mon, 10 Feb 2003 23:28:56 +0000
(23:28 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 10 Feb 2003 23:28:56 +0000
(23:28 +0000)
src/screen.cc
patch
|
blob
|
history
src/screen.hh
patch
|
blob
|
history
diff --git
a/src/screen.cc
b/src/screen.cc
index 0c90d747b9de86e63eeef0121e4e17fa0076b0c4..f5cc00922125f9068040504c56bf4ad456531913 100644
(file)
--- 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 55518fc93a2860312940ec6b6b5c026badbca092..4eb81d4aebd0b222beebf963f1fd48701ea543eb 100644
(file)
--- 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);