diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 17:59:55 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 17:59:55 +0000 |
commit | 9495e20a61ef7cb79a6ca2e3a70a1042a252bee6 (patch) | |
tree | 033f1ae1f5dfa273a242c78c679d39223ff3ae30 /chrome/browser/gtk/tab_contents_container_gtk.cc | |
parent | 0bc189ec6ddffa79c1ce804d90a50fd550571093 (diff) | |
download | chromium_src-9495e20a61ef7cb79a6ca2e3a70a1042a252bee6.zip chromium_src-9495e20a61ef7cb79a6ca2e3a70a1042a252bee6.tar.gz chromium_src-9495e20a61ef7cb79a6ca2e3a70a1042a252bee6.tar.bz2 |
Linux: tweak find bar.
- (attempt to) fix find bar z ordering in a simpler way
- get "close without animation" right.
Review URL: http://codereview.chromium.org/100286
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tab_contents_container_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/tab_contents_container_gtk.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/gtk/tab_contents_container_gtk.cc b/chrome/browser/gtk/tab_contents_container_gtk.cc index 4c2ea19..4b9767b 100644 --- a/chrome/browser/gtk/tab_contents_container_gtk.cc +++ b/chrome/browser/gtk/tab_contents_container_gtk.cc @@ -5,7 +5,6 @@ #include "chrome/browser/gtk/tab_contents_container_gtk.h" #include "base/gfx/native_widget_types.h" -#include "chrome/browser/gtk/find_bar_gtk.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" #include "chrome/common/notification_service.h" @@ -48,10 +47,11 @@ void TabContentsContainerGtk::SetTabContents(TabContents* tab_contents) { gtk_box_pack_end(GTK_BOX(vbox_), widget, TRUE, TRUE, 0); gtk_widget_show_all(widget); } - // We need to make sure that the find bar is on top before any painting - // is done. - if (tab_contents_->find_ui_active()) - findbar_->AssureOnTop(); + // We need to make sure that we are below the findbar. + GdkWindow* content_gdk_window = + tab_contents_->GetContentNativeView()->window; + if (content_gdk_window) + gdk_window_lower(content_gdk_window); } } |