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

Unified Diff: chrome/browser/ui/gtk/download/download_item_gtk.cc

Issue 9109028: GTK: Another GTK deprecation patch. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: evanm fix Created 8 years, 12 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/find_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/download/download_item_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.cc b/chrome/browser/ui/gtk/download/download_item_gtk.cc
index 3fe6e7107df7e077ec4c685cb061b18200d93bef..1664516a53fe75a7bedda94032ca899415f35958 100644
--- a/chrome/browser/ui/gtk/download/download_item_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_item_gtk.cc
@@ -715,7 +715,7 @@ gboolean DownloadItemGtk::OnHboxExpose(GtkWidget* widget, GdkEventExpose* e) {
// Draw a simple frame around the area when we're displaying the warning.
gtk_paint_shadow(gtk_widget_get_style(widget),
gtk_widget_get_window(widget),
- static_cast<GtkStateType>(widget->state),
+ gtk_widget_get_state(widget),
static_cast<GtkShadowType>(GTK_SHADOW_OUT),
&e->area, widget, "frame",
x, y, width, height);
@@ -727,7 +727,7 @@ gboolean DownloadItemGtk::OnHboxExpose(GtkWidget* widget, GdkEventExpose* e) {
// the button, we instruct GTK to draw the entire button...with a
// doctored clip rectangle to the left part of the button sans
// separator. We then repeat this for the right button.
- GtkStyle* style = body_.get()->style;
+ GtkStyle* style = gtk_widget_get_style(body_.get());
GtkAllocation left_clip;
gtk_widget_get_allocation(body_.get(), &left_clip);
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698