summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
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/gtk
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/gtk')
-rw-r--r--chrome/browser/gtk/constrained_window_gtk.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/gtk/constrained_window_gtk.cc b/chrome/browser/gtk/constrained_window_gtk.cc
index 21b45b8..1f53a59 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);