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

Unified Diff: chrome/browser/ui/gtk/infobars/infobar_gtk.cc

Issue 7134024: Disable scalling of InfoBar icon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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/infobars/infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/infobar_gtk.cc
index e41e09375589782c8a3e6d90db71470a057156dc..e7c77ec40ed3562fdf71185a3ba5bea168a758a7 100644
--- a/chrome/browser/ui/gtk/infobars/infobar_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/infobar_gtk.cc
@@ -63,6 +63,8 @@ InfoBar::InfoBar(InfoBarDelegate* delegate)
if (icon) {
GtkWidget* image = gtk_image_new_from_pixbuf(*icon);
+ gtk_widget_set_size_request(
+ image, GetInfoBarIconSizePixels(), GetInfoBarIconSizePixels());
gtk_misc_set_alignment(GTK_MISC(image), 0.5, 0.5);
gtk_box_pack_start(GTK_BOX(hbox_), image, FALSE, FALSE, 0);

Powered by Google App Engine
This is Rietveld 408576698