Use the correct perform invocation for these functions.

This commit is contained in:
Rene Gollent
2011-12-19 08:49:58 -05:00
parent e94fa361f3
commit f6c8d24294
8 changed files with 40 additions and 16 deletions
+5 -2
View File
@@ -878,9 +878,12 @@ BBox::_ValidateLayoutData()
extern "C" void
InvalidateLayout__4BBoxb(BBox* box)
InvalidateLayout__4BBoxb(BBox* box, bool descendants)
{
box->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
box->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -786,9 +786,12 @@ BButton::_DrawFocusLine(float x, float y, float width, bool visible)
extern "C" void
InvalidateLayout__7BButtonb(BView* view)
InvalidateLayout__7BButtonb(BView* view, bool descendants)
{
view->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
view->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -628,9 +628,12 @@ BCheckBox::operator=(const BCheckBox &)
extern "C" void
InvalidateLayout__9BCheckBoxb(BCheckBox* box)
InvalidateLayout__9BCheckBoxb(BCheckBox* box, bool descendants)
{
box->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
box->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -1515,9 +1515,12 @@ BMenuField::MenuBarLayoutItem::Instantiate(BMessage* from)
extern "C" void
InvalidateLayout__10BMenuFieldb(BMenuField* field)
InvalidateLayout__10BMenuFieldb(BMenuField* field, bool descendants)
{
field->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
field->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -902,9 +902,12 @@ void BScrollView::_ReservedScrollView4() {}
extern "C" void
InvalidateLayout__11BScrollViewb(BScrollView* view)
InvalidateLayout__11BScrollViewb(BScrollView* view, bool descendants)
{
view->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
view->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -458,9 +458,12 @@ BStringView::_ValidatePreferredSize()
extern "C" void
InvalidateLayout__11BStringViewb(BView* view)
InvalidateLayout__11BStringViewb(BView* view, bool descendants)
{
view->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
view->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -1485,9 +1485,12 @@ BTextControl::TextViewLayoutItem::Instantiate(BMessage* from)
extern "C" void
InvalidateLayout__12BTextControlb(BView* view)
InvalidateLayout__12BTextControlb(BView* view, bool descendants)
{
view->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
view->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}
+5 -2
View File
@@ -5641,9 +5641,12 @@ BTextView::TextTrackState::SimulateMouseMovement(BTextView *textView)
extern "C" void
InvalidateLayout__9BTextViewb(BTextView* view)
InvalidateLayout__9BTextViewb(BTextView* view, bool descendants)
{
view->Perform(PERFORM_CODE_LAYOUT_CHANGED, NULL);
perform_data_layout_invalidated data;
data.descendants = descendants;
view->Perform(PERFORM_CODE_LAYOUT_INVALIDATED, &data);
}