From 03f7c11ece0869967f2dc6b36cca8da7403594af Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sun, 14 Apr 2013 02:08:01 -0400 Subject: [PATCH] Rename SetWidthHeight to SetContentSize --- src/apps/deskbar/BarMenuBar.cpp | 6 +++--- src/apps/deskbar/BarMenuTitle.cpp | 2 +- src/apps/deskbar/BarMenuTitle.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/deskbar/BarMenuBar.cpp b/src/apps/deskbar/BarMenuBar.cpp index 8179d50127..c1873f40b7 100644 --- a/src/apps/deskbar/BarMenuBar.cpp +++ b/src/apps/deskbar/BarMenuBar.cpp @@ -88,13 +88,13 @@ TBarMenuBar::SmartResize(float width, float height) width -= 1; if (fSeparatorItem != NULL) - fDeskbarMenuItem->SetWidthHeight(width - kSepItemWidth, height); + fDeskbarMenuItem->SetContentSize(width - kSepItemWidth, height); else { int32 count = CountItems(); if (fDeskbarMenuItem) - fDeskbarMenuItem->SetWidthHeight(width / count, height); + fDeskbarMenuItem->SetContentSize(width / count, height); if (fAppListMenuItem) - fAppListMenuItem->SetWidthHeight(width / count, height); + fAppListMenuItem->SetContentSize(width / count, height); } InvalidateLayout(); diff --git a/src/apps/deskbar/BarMenuTitle.cpp b/src/apps/deskbar/BarMenuTitle.cpp index 36877d4783..a20b362697 100644 --- a/src/apps/deskbar/BarMenuTitle.cpp +++ b/src/apps/deskbar/BarMenuTitle.cpp @@ -64,7 +64,7 @@ TBarMenuTitle::~TBarMenuTitle() void -TBarMenuTitle::SetWidthHeight(float width, float height) +TBarMenuTitle::SetContentSize(float width, float height) { fWidth = width; fHeight = height; diff --git a/src/apps/deskbar/BarMenuTitle.h b/src/apps/deskbar/BarMenuTitle.h index 94caceb26c..c875c06a87 100644 --- a/src/apps/deskbar/BarMenuTitle.h +++ b/src/apps/deskbar/BarMenuTitle.h @@ -53,7 +53,7 @@ public: BMenu* menu, bool inexpando = false); virtual ~TBarMenuTitle(); - void SetWidthHeight(float width, float height); + void SetContentSize(float width, float height); void Draw(); status_t Invoke(BMessage* message);