From 4f6e9bc87ea91413e561633fd25226aeb3ea13ad Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sun, 4 Aug 2002 15:23:24 +0000
Subject: moved and changed name on width function in IconBarObj

---
 src/IconBar.cc | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)

diff --git a/src/IconBar.cc b/src/IconBar.cc
index c9eb55f..3ed4f54 100644
--- a/src/IconBar.cc
+++ b/src/IconBar.cc
@@ -19,7 +19,7 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: IconBar.cc,v 1.14 2002/07/23 17:11:58 fluxgen Exp $
+// $Id: IconBar.cc,v 1.15 2002/08/04 15:23:24 fluxgen Exp $
 
 #include "IconBar.hh"
 #include "i18n.hh"
@@ -37,6 +37,26 @@ IconBarObj::~IconBarObj() {
 	
 }
 
+//---------- getIconWidth ------------
+// will return the width of an icon
+// window
+//------------------------------------
+unsigned int IconBarObj::width() const {
+	Window root;
+
+	unsigned int width, height;
+	unsigned int border_width, depth;	//not used
+	int x, y; //not used
+
+	Display *m_display = Fluxbox::instance()->getXDisplay();
+
+	XGetGeometry(m_display, m_iconwin, &root, &x, &y, 
+					&width, &height, &border_width, &depth);
+
+	return width;
+}
+
+
 IconBar::IconBar(BScreen *scrn, Window parent):
 m_screen(scrn),
 m_parent(parent)
@@ -345,21 +365,3 @@ IconBarObj *IconBar::findIcon(FluxboxWindow *fluxboxwin) {
 	return 0;
 }
 
-//---------- getIconWidth ------------
-// will return the width of an icon
-// window
-//------------------------------------
-unsigned int IconBarObj::getWidth() {
-	Window root;
-
-	unsigned int width, height;
-	unsigned int border_width, depth;	//not used
-	int x, y; //not used
-
-	Display *m_display = Fluxbox::instance()->getXDisplay();
-
-	XGetGeometry(m_display, m_iconwin, &root, &x, &y, 
-					&width, &height, &border_width, &depth);
-
-	return width;
-}
-- 
cgit v0.11.2