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

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

Issue 9815006: ui/gfx: Remove the deprecated "operator const GdkPixbuf*" from Image API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/download/download_started_animation_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/edit_search_engine_dialog.cc
diff --git a/chrome/browser/ui/gtk/edit_search_engine_dialog.cc b/chrome/browser/ui/gtk/edit_search_engine_dialog.cc
index 0c086f906042cafbc3a1659c7e4712254a767562..b40d46a2fd6b48c155b83419efb9561762d14ad0 100644
--- a/chrome/browser/ui/gtk/edit_search_engine_dialog.cc
+++ b/chrome/browser/ui/gtk/edit_search_engine_dialog.cc
@@ -246,17 +246,16 @@ void EditSearchEngineDialog::EnableControls() {
void EditSearchEngineDialog::UpdateImage(GtkWidget* image,
bool is_valid,
int invalid_message_id) {
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
if (is_valid) {
gtk_widget_set_has_tooltip(image, FALSE);
gtk_image_set_from_pixbuf(GTK_IMAGE(image),
- ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INPUT_GOOD));
+ rb.GetNativeImageNamed(IDR_INPUT_GOOD).ToGdkPixbuf());
} else {
gtk_widget_set_tooltip_text(
image, l10n_util::GetStringUTF8(invalid_message_id).c_str());
gtk_image_set_from_pixbuf(GTK_IMAGE(image),
- ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
- IDR_INPUT_ALERT));
+ rb.GetNativeImageNamed(IDR_INPUT_ALERT).ToGdkPixbuf());
}
}
« no previous file with comments | « chrome/browser/ui/gtk/download/download_started_animation_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698