diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 02:26:07 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 02:26:07 +0000 |
commit | f3f2017007c1424a21b6cf5586c59a1fe2cf456a (patch) | |
tree | 6338100c482373f59d30aa84be517bb3cd54a58c /chrome/browser/tab_contents | |
parent | e5380f532572a127962f40d242650d136a51d896 (diff) | |
download | chromium_src-f3f2017007c1424a21b6cf5586c59a1fe2cf456a.zip chromium_src-f3f2017007c1424a21b6cf5586c59a1fe2cf456a.tar.gz chromium_src-f3f2017007c1424a21b6cf5586c59a1fe2cf456a.tar.bz2 |
Linux: fixes for tab contents switching
Previously, removing a view_ from its container destroyed it. We fix
this by disabling GTK's auto reference stealing.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/web_contents_view_gtk.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/web_contents_view_gtk.cc b/chrome/browser/tab_contents/web_contents_view_gtk.cc index c63d2bf..62fbd3a 100644 --- a/chrome/browser/tab_contents/web_contents_view_gtk.cc +++ b/chrome/browser/tab_contents/web_contents_view_gtk.cc @@ -29,6 +29,7 @@ WebContentsView* WebContentsView::Create(WebContents* web_contents) { WebContentsViewGtk::WebContentsViewGtk(WebContents* web_contents) : web_contents_(web_contents), vbox_(gtk_vbox_new(FALSE, 0)) { + g_object_ref_sink(vbox_); } WebContentsViewGtk::~WebContentsViewGtk() { |