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

Unified Diff: chrome/browser/cocoa/keyword_editor_cocoa_controller.mm

Issue 206016: The "make default" button... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/app/nibs/KeywordEditor.xib ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/keyword_editor_cocoa_controller.mm
===================================================================
--- chrome/browser/cocoa/keyword_editor_cocoa_controller.mm (revision 26242)
+++ chrome/browser/cocoa/keyword_editor_cocoa_controller.mm (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/search_engines/template_url_table_model.h"
#include "grit/generated_resources.h"
+#include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
@interface KeywordEditorCocoaController (Private)
- (void)adjustEditingButtons;
@@ -68,6 +69,13 @@
}
- (void)awakeFromNib {
+ // Make sure the button fits its label, but keep it the same height as the
+ // other two buttons.
+ [GTMUILocalizerAndLayoutTweaker sizeToFitView:makeDefaultButton_];
+ NSSize size = [makeDefaultButton_ frame].size;
+ size.height = NSHeight([addButton_ frame]);
+ [makeDefaultButton_ setFrameSize:size];
+
[self adjustEditingButtons];
[tableView_ setDoubleAction:@selector(editKeyword:)];
[tableView_ setTarget:self];
Property changes on: chrome/browser/cocoa/keyword_editor_cocoa_controller.mm
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « chrome/app/nibs/KeywordEditor.xib ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698