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

Unified Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

Issue 8952002: GTK: Remove more deprecated stuff. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix spaces 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 | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
index 24365c22ddd3a2e4adea3dd3b8395c99fcc9316d..2d26ab583f9e8f568ce363f512194bfc4d12d295 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
@@ -417,7 +417,9 @@ gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize(
}
int PanelBrowserWindowGtk::TitleOnlyHeight() const {
- return titlebar_widget()->allocation.height;
+ GtkAllocation allocation;
+ gtk_widget_get_allocation(titlebar_widget(), &allocation);
+ return allocation.height;
}
void PanelBrowserWindowGtk::StartBoundsAnimation(
@@ -564,8 +566,13 @@ GdkRectangle PanelBrowserWindowGtk::GetTitlebarRectForDrawAttention() const {
// We get the window width and not the titlebar_widget() width because we'd
// like for the window borders on either side of the title bar to be the same
// color.
- rect.width = GTK_WIDGET(window())->allocation.width;
- rect.height = titlebar_widget()->allocation.height;
+ GtkAllocation window_allocation;
+ gtk_widget_get_allocation(GTK_WIDGET(window()), &window_allocation);
+ rect.width = window_allocation.width;
+
+ GtkAllocation titlebar_allocation;
+ gtk_widget_get_allocation(titlebar_widget(), &titlebar_allocation);
+ rect.height = titlebar_allocation.height;
return rect;
}
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698