From 6a0d79319a5766ed9e113881ddcedba06991fb51 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 31 May 2013 15:00:45 -0400 Subject: [PATCH] Revert "SGITranslator: Resize menu field to preferred width" This reverts commit dc674f5d961fe92d691e6bae4def80ff6d14da3b. --- src/add-ons/translators/sgi/SGIView.cpp | 16 +--------------- src/add-ons/translators/sgi/SGIView.h | 1 - 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/add-ons/translators/sgi/SGIView.cpp b/src/add-ons/translators/sgi/SGIView.cpp index 6c65c966ea..1c2a7ba6e0 100644 --- a/src/add-ons/translators/sgi/SGIView.cpp +++ b/src/add-ons/translators/sgi/SGIView.cpp @@ -95,7 +95,7 @@ SGIView::SGIView(const char* name, uint32 flags, TranslatorSettings* settings) //add_menu_item(menu, SGI_COMP_ARLE, "Agressive RLE", currentCompression); - fCompressionMF = new BMenuField("compression", + fCompressionMF = new BMenuField("compression", B_TRANSLATE("Use compression:"), menu); BAlignment labelAlignment(B_ALIGN_LEFT, B_ALIGN_NO_VERTICAL); @@ -157,8 +157,6 @@ void SGIView::AllAttached() { fCompressionMF->Menu()->SetTargetForItems(this); - fCompressionMF->SetDivider( - fCompressionMF->StringWidth(fCompressionMF->Label()) + 3); } @@ -179,15 +177,3 @@ SGIView::MessageReceived(BMessage* message) BView::MessageReceived(message); } } - - -void -SGIView::WindowActivated(bool active) -{ - static bool firstRun = true; - - if (firstRun) { - firstRun = false; - fCompressionMF->ResizeToPreferred(); - } -} diff --git a/src/add-ons/translators/sgi/SGIView.h b/src/add-ons/translators/sgi/SGIView.h index 53a562893b..c3ebda93e7 100644 --- a/src/add-ons/translators/sgi/SGIView.h +++ b/src/add-ons/translators/sgi/SGIView.h @@ -50,7 +50,6 @@ public: virtual void AllAttached(); virtual void MessageReceived(BMessage* message); - virtual void WindowActivated(bool active); enum { MSG_COMPRESSION_CHANGED = 'cmch',