Commit f3ab3a45 authored by tony@chromium.org's avatar tony@chromium.org

Give the TabContentsContainer a white background so the user will

initially see white.  On debug builds, you see white, green, then
the page.

BUG=20059

Review URL: http://codereview.chromium.org/342027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30395 0039d316-1c4b-4281-b951-d872f2087c98
parent 27865580
......@@ -1720,6 +1720,10 @@ void BrowserWindowGtk::InitWidgets() {
gtk_widget_show_all(render_area_vbox_);
gtk_widget_hide(devtools_container_->widget());
render_area_event_box_ = gtk_event_box_new();
// Set a white background so during startup the user sees white in the
// content area before we get a TabContents in place.
gtk_widget_modify_bg(render_area_event_box_, GTK_STATE_NORMAL,
&gfx::kGdkWhite);
gtk_container_add(GTK_CONTAINER(render_area_event_box_), render_area_vbox_);
gtk_widget_show(render_area_event_box_);
gtk_box_pack_end(GTK_BOX(window_vbox_), render_area_event_box_,
......@@ -1826,8 +1830,6 @@ void BrowserWindowGtk::SetBackgroundColor() {
&frame_color_gdk);
// Set the color of the dev tools divider.
gtk_widget_modify_bg(render_area_event_box_, GTK_STATE_NORMAL,
&frame_color_gdk);
gtk_widget_modify_bg(contents_split_, GTK_STATE_NORMAL, &frame_color_gdk);
// When the cursor is over the divider, GTK+ normally lightens the background
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment