summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/slide_animator_gtk.cc
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 21:43:53 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 21:43:53 +0000
commit3ec98b3da7e091098829326f06211d6903c64e4e (patch)
tree6b19d0d937fac07a8c81d7e78fd18870cd3b9acf /chrome/browser/ui/gtk/slide_animator_gtk.cc
parent2cca969045c16f982c0c2cd7d64cf4d1c6958c18 (diff)
downloadchromium_src-3ec98b3da7e091098829326f06211d6903c64e4e.zip
chromium_src-3ec98b3da7e091098829326f06211d6903c64e4e.tar.gz
chromium_src-3ec98b3da7e091098829326f06211d6903c64e4e.tar.bz2
GTK: Do more GSEALing.
BUG=79722 R=jhawkins TBR=sky Review URL: http://codereview.chromium.org/9371005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/slide_animator_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/slide_animator_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/gtk/slide_animator_gtk.cc b/chrome/browser/ui/gtk/slide_animator_gtk.cc
index 3c1b974..8193609 100644
--- a/chrome/browser/ui/gtk/slide_animator_gtk.cc
+++ b/chrome/browser/ui/gtk/slide_animator_gtk.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -119,7 +119,7 @@ void SlideAnimatorGtk::AnimationProgressed(const ui::Animation* animation) {
int showing_height = static_cast<int>(req.height *
animation_->GetCurrentValue());
if (direction_ == DOWN) {
- if (widget_.get()->parent) {
+ if (gtk_widget_get_parent(widget_.get())) {
gtk_expanded_container_move(GTK_EXPANDED_CONTAINER(widget_.get()),
child_, 0, showing_height - req.height);
}