diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 22:18:31 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 22:18:31 +0000 |
commit | 1d3aa17b318b5691cf5b292ba6336f25f9d25d3c (patch) | |
tree | 4ea102877d0860e43dd85402b43f95435de15bbc /chrome/common/gtk_util.cc | |
parent | 79114c013c0bb312c4efdda33935b2340187e6cf (diff) | |
download | chromium_src-1d3aa17b318b5691cf5b292ba6336f25f9d25d3c.zip chromium_src-1d3aa17b318b5691cf5b292ba6336f25f9d25d3c.tar.gz chromium_src-1d3aa17b318b5691cf5b292ba6336f25f9d25d3c.tar.bz2 |
GTK: Don't custom paint background of findbar.
This makes the findbar look like the rest of the toolbar.
Review URL: http://codereview.chromium.org/113214
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.cc')
-rw-r--r-- | chrome/common/gtk_util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/gtk_util.cc b/chrome/common/gtk_util.cc index fba765b..a12def3 100644 --- a/chrome/common/gtk_util.cc +++ b/chrome/common/gtk_util.cc @@ -66,7 +66,8 @@ GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, // use a container border, since it won't paint there. Use an alignment // 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); + if (color) + gtk_widget_modify_bg(ebox, GTK_STATE_NORMAL, color); 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); |