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 1decd3b6c86e8fc4306a6eb53417d67059a77694..53c83ca86a562fc9f62afe834e5f48c955601bdf 100644 |
--- a/chrome/browser/ui/gtk/nine_box.cc |
+++ b/chrome/browser/ui/gtk/nine_box.cc |
@@ -175,8 +175,10 @@ void NineBox::RenderTopCenterStrip(cairo_t* cr, int x, int y, |
} |
void NineBox::ContourWidget(GtkWidget* widget) const { |
- int width = widget->allocation.width; |
- int height = widget->allocation.height; |
+ GtkAllocation allocation; |
+ gtk_widget_get_allocation(widget, &allocation); |
+ int width = allocation.width; |
+ int height = allocation.height; |
int x1 = gdk_pixbuf_get_width(images_[0]); |
int x2 = width - gdk_pixbuf_get_width(images_[2]); |