all repos — fluxbox @ 4f6e9bc87ea91413e561633fd25226aeb3ea13ad

custom fork of the fluxbox windowmanager

moved and changed name on width function in IconBarObj
fluxgen fluxgen
commit

4f6e9bc87ea91413e561633fd25226aeb3ea13ad

parent

cd9424a8c2f843fffcf112ac68c2b75b9fb13491

1 files changed, 21 insertions(+), 19 deletions(-)

jump to
M src/IconBar.ccsrc/IconBar.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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"

@@ -36,6 +36,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),

@@ -345,21 +365,3 @@

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; -}