From 734911ed1bff482b2bd88a3c073f98b8a241f450 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 20 Nov 2009 20:35:39 +0000 Subject: GTK: Don't fail on startup with debug build. I thought the check would never fail, but I found out how to trigger it, so it turns out to be necessary after all. TBR=derat Review URL: http://codereview.chromium.org/421011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32658 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/infobar_gtk.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/browser/gtk/infobar_gtk.cc') diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc index 1468439..6562bbc 100644 --- a/chrome/browser/gtk/infobar_gtk.cc +++ b/chrome/browser/gtk/infobar_gtk.cc @@ -116,12 +116,14 @@ GtkWidget* InfoBar::widget() { void InfoBar::AnimateOpen() { slide_widget_->Open(); - gdk_window_lower(border_bin_->window); + if (border_bin_->window) + gdk_window_lower(border_bin_->window); } void InfoBar::Open() { slide_widget_->OpenWithoutAnimation(); - gdk_window_lower(border_bin_->window); + if (border_bin_->window) + gdk_window_lower(border_bin_->window); } void InfoBar::AnimateClose() { -- cgit v1.1