aboutsummaryrefslogtreecommitdiff
path: root/src/IconBar.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-03-03 21:51:13 (GMT)
committerrathnor <rathnor>2003-03-03 21:51:13 (GMT)
commit19875e5a5ba474387971ede597cdc4aa7454d4c0 (patch)
tree99d672abcffa86d74734deacbd888eccde02ffd2 /src/IconBar.cc
parent824fd0db7a4b8117fecba9bb46053bdd38691803 (diff)
downloadfluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.zip
fluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.tar.bz2
Add code for toolbar modes
Diffstat (limited to 'src/IconBar.cc')
-rw-r--r--src/IconBar.cc25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/IconBar.cc b/src/IconBar.cc
index ac0834f..39ef4a6 100644
--- a/src/IconBar.cc
+++ b/src/IconBar.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: IconBar.cc,v 1.25 2003/02/23 14:29:08 fluxgen Exp $ 22// $Id: IconBar.cc,v 1.26 2003/03/03 21:51:01 rathnor Exp $
23 23
24#include "IconBar.hh" 24#include "IconBar.hh"
25#include "i18n.hh" 25#include "i18n.hh"
@@ -120,9 +120,9 @@ Window IconBar::delIcon(FluxboxWindow *fluxboxwin) {
120 IconList::iterator it = 120 IconList::iterator it =
121 std::find(m_iconlist.begin(), m_iconlist.end(), obj); 121 std::find(m_iconlist.begin(), m_iconlist.end(), obj);
122 if (it != m_iconlist.end()) { 122 if (it != m_iconlist.end()) {
123 m_iconlist.erase(it); 123 m_iconlist.erase(it);
124 retwin = obj->getIconWin(); 124 retwin = obj->getIconWin();
125 delete obj; 125 delete obj;
126 XDestroyWindow(m_display, retwin); 126 XDestroyWindow(m_display, retwin);
127 repositionIcons(); 127 repositionIcons();
128 } 128 }
@@ -131,6 +131,25 @@ Window IconBar::delIcon(FluxboxWindow *fluxboxwin) {
131} 131}
132 132
133/** 133/**
134 * Removes all icons from list
135 * Return X Windows of the removed iconobjs
136 */
137IconBar::WindowList *IconBar::delAllIcons() {
138 Window retwin = None;
139 WindowList *ret = new WindowList();
140 while (!m_iconlist.empty()) {
141 IconBarObj *obj = m_iconlist.back();
142 m_iconlist.pop_back();
143 retwin = obj->getIconWin();
144 ret->push_back(retwin);
145 delete obj;
146 XDestroyWindow(m_display, retwin);
147 }
148 repositionIcons();
149 return ret;
150}
151
152/**
134 renders theme to m_focus_pm 153 renders theme to m_focus_pm
135 with the size width * height 154 with the size width * height
136*/ 155*/