Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6960)

Unified Diff: chrome/browser/ui/gtk/browser_titlebar.cc

Issue 8773025: GTK: More removal of raw GtkWidget->allocation access. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc ('k') | chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698