From 138c12e0a406932d57f59a6c8f393f3342651ab9 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 6 Mar 2014 18:39:19 -0500 Subject: [PATCH] GIFTranslator: rename msgr to messsenger put BView::AllAttached() last (does nothing) --- src/add-ons/translators/gif/GIFView.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/add-ons/translators/gif/GIFView.cpp b/src/add-ons/translators/gif/GIFView.cpp index 443c24f303..74b372b2fc 100644 --- a/src/add-ons/translators/gif/GIFView.cpp +++ b/src/add-ons/translators/gif/GIFView.cpp @@ -298,18 +298,19 @@ GIFView::RestorePrefs() void GIFView::AllAttached() { + BMessenger messenger(this); + fInterlacedCB->SetTarget(messenger); + fUseDitheringCB->SetTarget(messenger); + fUseTransparentCB->SetTarget(messenger); + fUseTransparentAutoRB->SetTarget(messenger); + fUseTransparentColorRB->SetTarget(messenger); + fRedTextControl->SetTarget(messenger); + fGreenTextControl->SetTarget(messenger); + fBlueTextControl->SetTarget(messenger); + fPaletteM->SetTargetForItems(messenger); + fColorCountM->SetTargetForItems(messenger); + BView::AllAttached(); - BMessenger msgr(this); - fInterlacedCB->SetTarget(msgr); - fUseDitheringCB->SetTarget(msgr); - fUseTransparentCB->SetTarget(msgr); - fUseTransparentAutoRB->SetTarget(msgr); - fUseTransparentColorRB->SetTarget(msgr); - fRedTextControl->SetTarget(msgr); - fGreenTextControl->SetTarget(msgr); - fBlueTextControl->SetTarget(msgr); - fPaletteM->SetTargetForItems(msgr); - fColorCountM->SetTargetForItems(msgr); }