diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 17:43:32 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 17:43:32 +0000 |
commit | bb7d413a1d400d5b1dc7fcbb2a7904bf2eb13e5a (patch) | |
tree | 037d649297171cb2d32392931dbfaf5df27831e4 /base/gfx/gtk_util.cc | |
parent | c42799fb803edf7c35d27cdb2ed886ec18455e31 (diff) | |
download | chromium_src-bb7d413a1d400d5b1dc7fcbb2a7904bf2eb13e5a.zip chromium_src-bb7d413a1d400d5b1dc7fcbb2a7904bf2eb13e5a.tar.gz chromium_src-bb7d413a1d400d5b1dc7fcbb2a7904bf2eb13e5a.tar.bz2 |
Put a border around the find bar text entry field.
Review URL: http://codereview.chromium.org/56207
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/gtk_util.cc')
-rwxr-xr-x | base/gfx/gtk_util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gfx/gtk_util.cc b/base/gfx/gtk_util.cc index 047d9f0..1b0fc31 100755 --- a/base/gfx/gtk_util.cc +++ b/base/gfx/gtk_util.cc @@ -14,6 +14,7 @@ namespace gfx { const GdkColor kGdkWhite = GDK_COLOR_RGB(0xff, 0xff, 0xff); const GdkColor kGdkBlack = GDK_COLOR_RGB(0x00, 0x00, 0x00); +const GdkColor kGdkGreen = GDK_COLOR_RGB(0x00, 0xff, 0x00); void SubtractRectanglesFromRegion(GdkRegion* region, const std::vector<Rect>& cutouts) { @@ -71,7 +72,7 @@ GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, // inside to get the sizes exactly of how we want the border painted. GtkWidget* ebox = gtk_event_box_new(); gtk_widget_modify_bg(ebox, GTK_STATE_NORMAL, color); - GtkWidget* alignment = gtk_alignment_new(0, 0, 1, 1); + GtkWidget* alignment = gtk_alignment_new(0.0, 0.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), top, bottom, left, right); gtk_container_add(GTK_CONTAINER(alignment), child); gtk_container_add(GTK_CONTAINER(ebox), alignment); |