diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:21:28 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:21:28 +0000 |
commit | 39797c02ac4020c0537166b3311a57e6d0c296ac (patch) | |
tree | 76ffd303ac0a16e307b23e32893419f0c78beed1 /chrome/browser | |
parent | 0cecb4219d2db9d317a13c26467dee8e975feb32 (diff) | |
download | chromium_src-39797c02ac4020c0537166b3311a57e6d0c296ac.zip chromium_src-39797c02ac4020c0537166b3311a57e6d0c296ac.tar.gz chromium_src-39797c02ac4020c0537166b3311a57e6d0c296ac.tar.bz2 |
GTK: Give the find bar a more reasonable size.
This (roughly) matches windows.
http://crbug.com/12147
Review URL: http://codereview.chromium.org/113529
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/gtk/find_bar_gtk.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc index beba4ae..922cafb 100644 --- a/chrome/browser/gtk/find_bar_gtk.cc +++ b/chrome/browser/gtk/find_bar_gtk.cc @@ -36,6 +36,9 @@ const int kBarPaddingRight = 4; // images. const int kFindBarHeight = 32; +// The width of the text entry field. +const int kTextEntryWidth = 220; + // Get the ninebox that draws the background of |container_|. It is also used // to change the shape of |container_|. The pointer is shared by all instances // of FindBarGtk. @@ -155,7 +158,7 @@ void FindBarGtk::InitWidgets() { // we want the widgets inside to resize themselves rather than making the // dialog bigger. GtkWidget* content_hbox = gtk_hbox_new(false, 0); - gtk_widget_set_size_request(content_hbox, 300, -1); + gtk_widget_set_size_request(content_hbox, kTextEntryWidth, -1); text_entry_ = gtk_entry_new(); match_count_label_ = gtk_label_new(NULL); |