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

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

Issue 9359052: GTK: Closing in on being completely GSEALed. (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
Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 9358dd5c64313fffaf4b4f681dabe261884675d7..8024e1644eb1a0c3196d76bdbf1b2fc5148b8767 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -457,7 +457,7 @@ void LocationBarViewGtk::Update(const WebContents* contents) {
if (theme_service_->UsingNativeTheme()) {
// In GTK mode, we need our parent to redraw, as it draws the text entry
// border.
- gtk_widget_queue_draw(widget()->parent);
+ gtk_widget_queue_draw(gtk_widget_get_parent(widget()));
} else {
gtk_widget_queue_draw(widget());
}
@@ -1018,7 +1018,7 @@ void LocationBarViewGtk::SetKeywordHintLabel(const string16& keyword) {
}
void LocationBarViewGtk::ShowFirstRunBubbleInternal() {
- if (!location_entry_.get() || !widget()->window)
+ if (!location_entry_.get() || !gtk_widget_get_window(widget()))
return;
gfx::Rect bounds = gtk_util::WidgetBounds(location_icon_image_);
@@ -1395,7 +1395,7 @@ gboolean LocationBarViewGtk::ContentSettingImageViewGtk::OnExpose(
gtk_widget_get_allocation(sender, &allocation);
const int height = allocation.height;
- cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(sender->window));
+ cairo_t* cr = gdk_cairo_create(gtk_widget_get_window(sender));
gdk_cairo_rectangle(cr, &event->area);
cairo_clip(cr);
« no previous file with comments | « chrome/browser/ui/gtk/infobars/infobar_gtk.cc ('k') | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698