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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc

Issue 9113033: GTK: More raw struct access removal, this time focusing on GtkDialog. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 11 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 | « no previous file | chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
index b431ed5ae200a4aae2583b01f81e273cc610223c..1f747b3b124e8ad247513653ed163c71375a2bfc 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc
@@ -434,13 +434,14 @@ void BookmarkBarGtk::Show(BookmarkBar::State old_state,
// probably be improved.
if (bookmark_bar_state_ == BookmarkBar::DETACHED) {
if (theme_service_->UsingNativeTheme()) {
- if (gtk_widget_get_realized(event_box_->parent))
- gdk_window_lower(event_box_->parent->window);
+ GtkWidget* parent = gtk_widget_get_parent(event_box_.get());
+ if (gtk_widget_get_realized(parent))
+ gdk_window_lower(gtk_widget_get_window(parent));
if (gtk_widget_get_realized(event_box_.get()))
- gdk_window_lower(event_box_->window);
+ gdk_window_lower(gtk_widget_get_window(event_box_.get()));
} else { // Chromium theme mode.
if (gtk_widget_get_realized(paint_box_)) {
- gdk_window_lower(paint_box_->window);
+ gdk_window_lower(gtk_widget_get_window(paint_box_));
// The event box won't stay below its children's GdkWindows unless we
// toggle the above-child property here. If the event box doesn't stay
// below its children then events will be routed to it rather than the
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698