Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3169)

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.mm

Issue 10832052: [Mac]: Change rename/add bookmark folder dialog buttons' text to "Save" and "Add" respectively. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.mm (revision 148651)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.mm (working copy)
@@ -70,15 +70,10 @@
- (void)awakeFromNib {
[nameField_ setStringValue:initialName_.get()];
+ [[nameField_ cell] setUsesSingleLineMode:YES];
- // Check if NSTextFieldCell supports the method. This check is in place as
- // only 10.6 and greater support the setUsesSingleLineMode method.
- // TODO(kushi.p): Remove this when the project hits a 10.6+ only state.
- NSTextFieldCell* nameFieldCell_ = [nameField_ cell];
- if ([nameFieldCell_
- respondsToSelector:@selector(setUsesSingleLineMode:)]) {
- [nameFieldCell_ setUsesSingleLineMode:YES];
- }
+ [okButton_ setTitle:l10n_util::GetNSStringWithFixup(node_ ? IDS_SAVE :
+ IDS_ADD)];
Nico 2012/07/27 22:25:20 Why not change the nib instead?
Alexei Svitkine (slow) 2012/07/27 22:32:01 It's conditional. I can change it in the nib to on
}
- (void)runAsModalSheet {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698