Index: chrome/browser/ui/gtk/nine_box.cc |
diff --git a/chrome/browser/ui/gtk/nine_box.cc b/chrome/browser/ui/gtk/nine_box.cc |
index 66f623fa8a383de21a7f6bda77222f3658490b8d..13e94a1fb1de172326eb5a27f2f9be3e96d990ff 100644 |
--- a/chrome/browser/ui/gtk/nine_box.cc |
+++ b/chrome/browser/ui/gtk/nine_box.cc |
@@ -138,7 +138,7 @@ void NineBox::RenderToWidgetWithOpacity(GtkWidget* dst, double opacity) const { |
if (x2 < x1 || y2 < y1) |
return; |
- cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(dst->window)); |
+ cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(gtk_widget_get_window(dst))); |
// For widgets that have their own window, the allocation (x,y) coordinates |
// are GdkWindow relative. For other widgets, the coordinates are relative |
// to their container. |