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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 342027: Give the TabContentsContainer a white background so the user will (Closed)
Patch Set: render_area_event_box_ Created 11 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index e01be2b2eda3e9f0aea9556fc5d0ec8eb06013d3..cf7f6fbb7955287742eda0b1b0f629dfe6cfc4b3 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698