From e7e50227f66d9b55f2011ad8ec355d7c3c70867a Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 23 Apr 2010 14:56:31 +0000 Subject: Gets rid of the annoying white dot in the upper left corner of all chromeos windows. This white dot was a gtkfixed that should not have been visible. It was being made visible by the show_all in WindowGtk. There may be some regressions from this change, but we should individually be doing show/show_all for hierarchies rather than in window. BUG=none TEST=none Review URL: http://codereview.chromium.org/1730008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45442 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/native/native_view_host_gtk.cc | 1 + views/window/window_gtk.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/views/controls/native/native_view_host_gtk.cc b/views/controls/native/native_view_host_gtk.cc index 36aa82b..79a144d 100644 --- a/views/controls/native/native_view_host_gtk.cc +++ b/views/controls/native/native_view_host_gtk.cc @@ -273,6 +273,7 @@ void NativeViewHostGtk::CreateFixed(bool needs_window) { DestroyFixed(); fixed_ = gtk_fixed_new(); + gtk_widget_set_name(fixed_, "views-native-view-host-fixed"); gtk_fixed_set_has_window(GTK_FIXED(fixed_), needs_window); // Defeat refcounting. We need to own the fixed. gtk_widget_ref(fixed_); diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc index 4b0a682..d0ba7bc 100644 --- a/views/window/window_gtk.cc +++ b/views/window/window_gtk.cc @@ -120,7 +120,7 @@ void WindowGtk::SetBounds(const gfx::Rect& bounds, } void WindowGtk::Show() { - gtk_widget_show_all(GetNativeView()); + gtk_widget_show(GetNativeView()); } void WindowGtk::HideWindow() { -- cgit v1.1