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

Unified Diff: chrome/browser/gtk/find_bar_gtk.cc

Issue 113529: GTK: Give the find bar a more reasonable size. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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/gtk/find_bar_gtk.cc
===================================================================
--- chrome/browser/gtk/find_bar_gtk.cc (revision 16275)
+++ chrome/browser/gtk/find_bar_gtk.cc (working copy)
@@ -36,6 +36,9 @@
// 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 @@
// 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);
« 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