Skip to content
Snippets Groups Projects
Commit e10d86c2 authored by thomasvl@chromium.org's avatar thomasvl@chromium.org
Browse files

Keyword editor fixes:

The "make default" button
  Auto size to always fit the text.
  Be a small style control, look better (changes font).
General fix up so the window resizes.
TableView
  Turn off column select
  Turn off multiple selection (code doesn't support it on delete).
Update the xib for the class name change that happened as part of the prior commit.

BUG=21892
TEST=window resize correctly, make default button fits it's text for all languages.
Review URL: http://codereview.chromium.org/206016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26252 0039d316-1c4b-4281-b951-d872f2087c98
parent 06a34457
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -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 KeywordEditorModelObserver::OnEditedKeyword(
}
- (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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment