Index: chrome/browser/ui/gtk/browser_titlebar.cc |
diff --git a/chrome/browser/ui/gtk/browser_titlebar.cc b/chrome/browser/ui/gtk/browser_titlebar.cc |
index 98da9e7548800f7154c2f11d4a8ee1ae8d5aff15..37308aa3c1c411eaf619b95ce391cfd20c61b194 100644 |
--- a/chrome/browser/ui/gtk/browser_titlebar.cc |
+++ b/chrome/browser/ui/gtk/browser_titlebar.cc |
@@ -852,8 +852,11 @@ void BrowserTitlebar::MaximizeButtonClicked() { |
gint x, y; |
gtk_window_get_position(window_, &x, &y); |
- gint width = widget->allocation.width; |
- gint height = widget->allocation.height; |
+ |
+ GtkAllocation allocation; |
+ gtk_widget_get_allocation(widget, &allocation); |
+ gint width = allocation.width; |
+ gint height = allocation.height; |
if (event->button.button == 3) { |
x = 0; |