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

Unified Diff: chrome/browser/gtk/constrained_window_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 | « no previous file | chrome/browser/login_prompt_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/constrained_window_gtk.cc
diff --git a/chrome/browser/gtk/constrained_window_gtk.cc b/chrome/browser/gtk/constrained_window_gtk.cc
index 21b45b8c8c01d1474b02c1cad15460049dad40e2..1f53a59efde8a95094a0a98c260f1a1380a19ada 100644
--- a/chrome/browser/gtk/constrained_window_gtk.cc
+++ b/chrome/browser/gtk/constrained_window_gtk.cc
@@ -8,9 +8,6 @@
#include "chrome/browser/tab_contents/tab_contents_view_gtk.h"
#include "chrome/common/gtk_util.h"
-// The minimal border around the edge of the notification.
-const int kSmallPadding = 2;
-
ConstrainedWindowGtk::ConstrainedWindowGtk(
TabContents* owner, ConstrainedWindowGtkDelegate* delegate)
: owner_(owner),
@@ -23,10 +20,11 @@ ConstrainedWindowGtk::ConstrainedWindowGtk(
// our "window".
GtkWidget* ebox = gtk_event_box_new();
GtkWidget* frame = gtk_frame_new(NULL);
- gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_OUT);
+ gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_OUT);
GtkWidget* alignment = gtk_alignment_new(0.0, 0.0, 1.0, 1.0);
gtk_alignment_set_padding(GTK_ALIGNMENT(alignment),
- kSmallPadding, kSmallPadding, kSmallPadding, kSmallPadding);
+ gtk_util::kContentAreaBorder, gtk_util::kContentAreaBorder,
+ gtk_util::kContentAreaBorder, gtk_util::kContentAreaBorder);
gtk_container_add(GTK_CONTAINER(alignment), dialog);
gtk_container_add(GTK_CONTAINER(frame), alignment);
gtk_container_add(GTK_CONTAINER(ebox), frame);
« no previous file with comments | « no previous file | chrome/browser/login_prompt_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698