From 401bf7a0b5b1c49618c7cdc1e7c9a5d0b2609647 Mon Sep 17 00:00:00 2001 From: Matt Madia Date: Sat, 2 Feb 2013 14:12:12 -0500 Subject: [PATCH] Renamed Save button to Apply. Fixes #7533. --- src/preferences/notifications/PrefletWin.cpp | 16 ++++++++-------- src/preferences/notifications/PrefletWin.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/preferences/notifications/PrefletWin.cpp b/src/preferences/notifications/PrefletWin.cpp index 6813bdc44a..422d30c728 100644 --- a/src/preferences/notifications/PrefletWin.cpp +++ b/src/preferences/notifications/PrefletWin.cpp @@ -22,7 +22,7 @@ const int32 kRevert = '_RVT'; -const int32 kSave = '_SAV'; +const int32 kApply = '_APY'; PrefletWin::PrefletWin() @@ -34,12 +34,12 @@ PrefletWin::PrefletWin() // Preflet container view fMainView = new PrefletView(this); - // Save and revert buttons + // Apply and revert buttons fRevert = new BButton("revert", B_TRANSLATE("Revert"), new BMessage(kRevert)); fRevert->SetEnabled(false); - fSave = new BButton("save", B_TRANSLATE("Save"), new BMessage(kSave)); - fSave->SetEnabled(false); + fApply = new BButton("apply", B_TRANSLATE("Apply"), new BMessage(kApply)); + fApply->SetEnabled(false); // Calculate inset float inset = ceilf(be_plain_font->Size() * 0.7f); @@ -54,7 +54,7 @@ PrefletWin::PrefletWin() .AddGroup(B_HORIZONTAL, inset) .AddGlue() .Add(fRevert) - .Add(fSave) + .Add(fApply) .End() .SetInsets(inset, inset, inset, inset) @@ -70,13 +70,13 @@ void PrefletWin::MessageReceived(BMessage* msg) { switch (msg->what) { - case kSave: + case kApply: for (int32 i = 0; i < fMainView->CountPages(); i++) { SettingsPane* pane = dynamic_cast(fMainView->PageAt(i)); if (pane) { if (pane->Save() == B_OK) { - fSave->SetEnabled(false); + fApply->SetEnabled(false); fRevert->SetEnabled(true); } else break; @@ -110,5 +110,5 @@ PrefletWin::QuitRequested() void PrefletWin::SettingChanged() { - fSave->SetEnabled(true); + fApply->SetEnabled(true); } diff --git a/src/preferences/notifications/PrefletWin.h b/src/preferences/notifications/PrefletWin.h index f2029b8294..c9443d25a7 100644 --- a/src/preferences/notifications/PrefletWin.h +++ b/src/preferences/notifications/PrefletWin.h @@ -25,7 +25,7 @@ public: private: PrefletView* fMainView; - BButton* fSave; + BButton* fApply; BButton* fRevert; };