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

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

Issue 8872004: GTK: More changes from raw widget->allocation to using the accessor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
diff --git a/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc b/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
index 4de40701708bb545c44802336e6ecde50f1f455d..411f721afde9d7ed30807b71061684389adde246 100644
--- a/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
+++ b/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
@@ -67,7 +67,9 @@ void AvatarMenuButtonGtk::UpdateButtonIcon() {
if (!icon_.get())
return;
- old_height_ = widget()->allocation.height;
+ GtkAllocation allocation;
+ gtk_widget_get_allocation(widget(), &allocation);
+ old_height_ = allocation.height;
gfx::Image icon = profiles::GetAvatarIconForTitleBar(*icon_, is_gaia_picture_,
profiles::kAvatarIconWidth, old_height_);
gtk_image_set_from_pixbuf(GTK_IMAGE(image_), icon.ToGdkPixbuf());
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698