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

Unified Diff: chrome/browser/login_prompt_gtk.cc

Issue 140076: GTK: Polish HTTP Auth UI. Adds standard border and word wraps the label. (Closed)
Patch Set: Fixes for evan Created 11 years, 6 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/browser/gtk/constrained_window_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/login_prompt_gtk.cc
diff --git a/chrome/browser/login_prompt_gtk.cc b/chrome/browser/login_prompt_gtk.cc
index f52f2ee41a3b9a5b58e7d8ee34b05f3af1f8b6ba..74d879eb786d0d0333cfc0ba8446d53baab2d901 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);
« no previous file with comments | « chrome/browser/gtk/constrained_window_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698