| Index: chrome/browser/ui/gtk/tab_contents_container_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/tab_contents_container_gtk.cc b/chrome/browser/ui/gtk/tab_contents_container_gtk.cc
|
| index 75154e83fc9ec3788e72107489842167cb0a071f..2b99961ea44162d3addfa734af06b9430b180a0b 100644
|
| --- a/chrome/browser/ui/gtk/tab_contents_container_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/tab_contents_container_gtk.cc
|
| @@ -132,7 +132,7 @@ void TabContentsContainerGtk::PackTab(TabContentsWrapper* tab) {
|
|
|
| gfx::NativeView widget = tab->web_contents()->GetNativeView();
|
| if (widget) {
|
| - if (widget->parent != expanded_)
|
| + if (gtk_widget_get_parent(widget) != expanded_)
|
| gtk_container_add(GTK_CONTAINER(expanded_), widget);
|
| gtk_widget_show(widget);
|
| }
|
| @@ -140,8 +140,8 @@ void TabContentsContainerGtk::PackTab(TabContentsWrapper* tab) {
|
| // We need to make sure that we are below the findbar.
|
| // Sometimes the content native view will be null.
|
| if (tab->web_contents()->GetContentNativeView()) {
|
| - GdkWindow* content_gdk_window =
|
| - tab->web_contents()->GetContentNativeView()->window;
|
| + GdkWindow* content_gdk_window = gtk_widget_get_window(
|
| + tab->web_contents()->GetContentNativeView());
|
| if (content_gdk_window)
|
| gdk_window_lower(content_gdk_window);
|
| }
|
|
|