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

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

Issue 9147044: GTK: More GSEALing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: jhawkins refactor 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 | « chrome/browser/ui/gtk/chrome_gtk_frame.cc ('k') | chrome/browser/ui/gtk/download/download_shelf_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/custom_button.cc
diff --git a/chrome/browser/ui/gtk/custom_button.cc b/chrome/browser/ui/gtk/custom_button.cc
index 447f6c81f781a1b833628cf1126646a7507f8580..b5fff55dc823a13c6f2cbbd3c658d5f834ad9a7b 100644
--- a/chrome/browser/ui/gtk/custom_button.cc
+++ b/chrome/browser/ui/gtk/custom_button.cc
@@ -91,7 +91,8 @@ gboolean CustomDrawButtonBase::OnExpose(GtkWidget* widget,
if (animating_hover && (!hover_pixbuf || !hover_pixbuf->valid()))
return FALSE;
- cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(widget->window));
+ cairo_t* cairo_context = gdk_cairo_create(GDK_DRAWABLE(
+ gtk_widget_get_window(widget)));
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);
cairo_translate(cairo_context, allocation.x, allocation.y);
« no previous file with comments | « chrome/browser/ui/gtk/chrome_gtk_frame.cc ('k') | chrome/browser/ui/gtk/download/download_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698