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

Unified Diff: chrome/browser/ui/gtk/reload_button_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 | « chrome/browser/ui/gtk/menu_gtk.cc ('k') | chrome/browser/ui/gtk/rounded_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/reload_button_gtk.cc
diff --git a/chrome/browser/ui/gtk/reload_button_gtk.cc b/chrome/browser/ui/gtk/reload_button_gtk.cc
index 2b8df1ec48ef11c3dba54157a270aa2ab55becdd..91f7c63a32d09854a05c4d6a41b79cbd52717ed4 100644
--- a/chrome/browser/ui/gtk/reload_button_gtk.cc
+++ b/chrome/browser/ui/gtk/reload_button_gtk.cc
@@ -230,8 +230,9 @@ void ReloadButtonGtk::UpdateThemeButtons() {
if (use_gtk) {
gtk_widget_ensure_style(widget());
+ GtkStyle* style = gtk_widget_get_style(widget());
GtkIconSet* icon_set = gtk_style_lookup_icon_set(
- widget()->style,
+ style,
(visible_mode_ == MODE_RELOAD) ? GTK_STOCK_REFRESH : GTK_STOCK_STOP);
if (icon_set) {
GtkStateType state = gtk_widget_get_state(widget());
@@ -240,7 +241,7 @@ void ReloadButtonGtk::UpdateThemeButtons() {
GdkPixbuf* pixbuf = gtk_icon_set_render_icon(
icon_set,
- widget()->style,
+ style,
gtk_widget_get_direction(widget()),
state,
GTK_ICON_SIZE_SMALL_TOOLBAR,
« no previous file with comments | « chrome/browser/ui/gtk/menu_gtk.cc ('k') | chrome/browser/ui/gtk/rounded_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698