Rename SetWidthHeight to SetContentSize

This commit is contained in:
John Scipione
2013-04-14 02:49:35 -04:00
parent bec7990562
commit 03f7c11ece
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -88,13 +88,13 @@ TBarMenuBar::SmartResize(float width, float height)
width -= 1; width -= 1;
if (fSeparatorItem != NULL) if (fSeparatorItem != NULL)
fDeskbarMenuItem->SetWidthHeight(width - kSepItemWidth, height); fDeskbarMenuItem->SetContentSize(width - kSepItemWidth, height);
else { else {
int32 count = CountItems(); int32 count = CountItems();
if (fDeskbarMenuItem) if (fDeskbarMenuItem)
fDeskbarMenuItem->SetWidthHeight(width / count, height); fDeskbarMenuItem->SetContentSize(width / count, height);
if (fAppListMenuItem) if (fAppListMenuItem)
fAppListMenuItem->SetWidthHeight(width / count, height); fAppListMenuItem->SetContentSize(width / count, height);
} }
InvalidateLayout(); InvalidateLayout();
+1 -1
View File
@@ -64,7 +64,7 @@ TBarMenuTitle::~TBarMenuTitle()
void void
TBarMenuTitle::SetWidthHeight(float width, float height) TBarMenuTitle::SetContentSize(float width, float height)
{ {
fWidth = width; fWidth = width;
fHeight = height; fHeight = height;
+1 -1
View File
@@ -53,7 +53,7 @@ public:
BMenu* menu, bool inexpando = false); BMenu* menu, bool inexpando = false);
virtual ~TBarMenuTitle(); virtual ~TBarMenuTitle();
void SetWidthHeight(float width, float height); void SetContentSize(float width, float height);
void Draw(); void Draw();
status_t Invoke(BMessage* message); status_t Invoke(BMessage* message);