summaryrefslogtreecommitdiffstats
path: root/chrome/browser/login_prompt_gtk.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 19:03:31 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 19:03:31 +0000
commita0b3f2a55425488d7e936d643fd01878208af2cf (patch)
tree6977770dfa7506660bc6aa59d15c5c73bb0b8d6b /chrome/browser/login_prompt_gtk.cc
parent948df0de734128e56dbe7db400ed2def60132ca6 (diff)
downloadchromium_src-a0b3f2a55425488d7e936d643fd01878208af2cf.zip
chromium_src-a0b3f2a55425488d7e936d643fd01878208af2cf.tar.gz
chromium_src-a0b3f2a55425488d7e936d643fd01878208af2cf.tar.bz2
GTK: Polish HTTP Auth UI. Adds standard border and word wraps the label.
http://crbug.com/11512 Review URL: http://codereview.chromium.org/140076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/login_prompt_gtk.cc')
-rw-r--r--chrome/browser/login_prompt_gtk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/login_prompt_gtk.cc b/chrome/browser/login_prompt_gtk.cc
index f52f2ee..74d879e 100644
--- a/chrome/browser/login_prompt_gtk.cc
+++ b/chrome/browser/login_prompt_gtk.cc
@@ -57,9 +57,9 @@ class LoginHandlerGtk : public LoginHandler,
DCHECK(MessageLoop::current() == ui_loop_);
root_.Own(gtk_vbox_new(NULL, gtk_util::kContentAreaBorder));
- gtk_box_pack_start(GTK_BOX(root_.get()),
- gtk_label_new(WideToUTF8(explanation).c_str()),
- FALSE, FALSE, 0);
+ GtkWidget* label = gtk_label_new(WideToUTF8(explanation).c_str());
+ gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
+ gtk_box_pack_start(GTK_BOX(root_.get()), label, FALSE, FALSE, 0);
username_entry_ = gtk_entry_new();
gtk_entry_set_activates_default(GTK_ENTRY(username_entry_), TRUE);