| Index: chrome/browser/ui/gtk/custom_button.cc
|
| diff --git a/chrome/browser/ui/gtk/custom_button.cc b/chrome/browser/ui/gtk/custom_button.cc
|
| index 447f6c81f781a1b833628cf1126646a7507f8580..b5fff55dc823a13c6f2cbbd3c658d5f834ad9a7b 100644
|
| --- a/chrome/browser/ui/gtk/custom_button.cc
|
| +++ b/chrome/browser/ui/gtk/custom_button.cc
|
| @@ -91,7 +91,8 @@ gboolean CustomDrawButtonBase::OnExpose(GtkWidget* widget,
|
| if (animating_hover && (!hover_pixbuf || !hover_pixbuf->valid()))
|
| return FALSE;
|
|
|
| - cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(widget->window));
|
| + cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(
|
| + gtk_widget_get_window(widget)));
|
| GtkAllocation allocation;
|
| gtk_widget_get_allocation(widget, &allocation);
|
| cairo_translate(cairo_context, allocation.x, allocation.y);
|
|
|