hrev45300 adds 1 changeset to branch 'master' old head: 6f53c50c36b205941ee339236ce26f02f87cb136 new head: 819c63ad65e53c432099eeed2e5a1d00f8f0b79e overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=819c63a+%5E6f53c50 ---------------------------------------------------------------------------- 819c63a: Set tooltip in instance of close button, not class. Also set a similar tooltip for the previous and next buttons and comments for translators. [ John Scipione <jscipione@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev45300 Commit: 819c63ad65e53c432099eeed2e5a1d00f8f0b79e URL: http://cgit.haiku-os.org/haiku/commit/?id=819c63a Author: John Scipione <jscipione@xxxxxxxxx> Date: Mon Feb 18 02:22:03 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 8 insertions(+), 6 deletions(-) src/apps/webpositive/BrowserWindow.cpp | 14 ++++++++------ ---------------------------------------------------------------------------- diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index ec935a5..a0cf4a7 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -252,12 +252,6 @@ public: SetExplicitMaxSize(BSize(15, 15)); } - virtual void AttachedToWindow() - { - SetToolTip(B_TRANSLATE("Close find bar")); - BButton::AttachedToWindow(); - } - virtual void Draw(BRect updateRect) { BRect frame = Bounds(); @@ -506,13 +500,21 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings, // Find group fFindCloseButton = new CloseButton(new BMessage(EDIT_HIDE_FIND_GROUP)); + fFindCloseButton->SetToolTip(B_TRANSLATE_COMMENT("Close find bar", + "find bar close button tooltip")); fFindTextControl = new BTextControl("find", B_TRANSLATE("Find:"), "", new BMessage(EDIT_FIND_NEXT)); fFindTextControl->SetModificationMessage(new BMessage(FIND_TEXT_CHANGED)); fFindPreviousButton = new BButton(B_TRANSLATE("Previous"), new BMessage(EDIT_FIND_PREVIOUS)); + fFindPreviousButton->SetToolTip( + B_TRANSLATE_COMMENT("Find previous occurrence of search terms", + "find bar previous button tooltip")); fFindNextButton = new BButton(B_TRANSLATE("Next"), new BMessage(EDIT_FIND_NEXT)); + fFindNextButton->SetToolTip( + B_TRANSLATE_COMMENT("Find next occurrence of search terms", + "find bar next button tooltip")); fFindCaseSensitiveCheckBox = new BCheckBox(B_TRANSLATE("Match case")); BGroupLayout* findGroup = BLayoutBuilder::Group<>(B_VERTICAL, 0.0) .Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER))