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

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

Issue 9371005: GTK: Do more GSEALing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months 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/slide_animator_gtk.cc ('k') | ui/gfx/gtk_preserve_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/status_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/status_bubble_gtk.cc b/chrome/browser/ui/gtk/status_bubble_gtk.cc
index a5c34f0c459c3b41ef9e77d2a8ec35fdbdccbdda..a6410ad26404864ee7bd07e704bf344da68b9cf5 100644
--- a/chrome/browser/ui/gtk/status_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/status_bubble_gtk.cc
@@ -122,8 +122,9 @@ void StatusBubbleGtk::Show() {
hide_timer_.Stop();
gtk_widget_show(container_.get());
- if (container_->window)
- gdk_window_raise(container_->window);
+ GdkWindow* gdk_window = gtk_widget_get_window(container_.get());
+ if (gdk_window)
+ gdk_window_raise(gdk_window);
}
void StatusBubbleGtk::Hide() {
@@ -198,7 +199,8 @@ void StatusBubbleGtk::MouseMoved(
// Get our base position (that is, not including the current offset)
// relative to the origin of the root window.
gint toplevel_x = 0, toplevel_y = 0;
- gdk_window_get_position(toplevel->window, &toplevel_x, &toplevel_y);
+ GdkWindow* gdk_window = gtk_widget_get_window(toplevel);
+ gdk_window_get_position(gdk_window, &toplevel_x, &toplevel_y);
gfx::Rect parent_rect =
gtk_util::GetWidgetRectRelativeToToplevel(parent);
gfx::Rect bubble_rect(
« no previous file with comments | « chrome/browser/ui/gtk/slide_animator_gtk.cc ('k') | ui/gfx/gtk_preserve_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698