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

Unified Diff: chrome/common/gtk_util.cc

Issue 155672: Set window icon on options dialog, bookmark manager.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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/common/gtk_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gtk_util.cc
===================================================================
--- chrome/common/gtk_util.cc (revision 20922)
+++ chrome/common/gtk_util.cc (working copy)
@@ -10,8 +10,10 @@
#include <cstdarg>
#include "app/l10n_util.h"
+#include "app/resource_bundle.h"
#include "base/linux_util.h"
#include "base/logging.h"
+#include "grit/theme_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace {
@@ -395,4 +397,13 @@
return widget_allocation.Contains(x, y);
}
+void SetWindowIcon(GtkWindow* window) {
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ GList* icon_list = NULL;
+ icon_list = g_list_append(icon_list, rb.GetPixbufNamed(IDR_PRODUCT_ICON_32));
+ icon_list = g_list_append(icon_list, rb.GetPixbufNamed(IDR_PRODUCT_LOGO_16));
+ gtk_window_set_icon_list(window, icon_list);
+ g_list_free(icon_list);
+}
+
} // namespace gtk_util
« no previous file with comments | « chrome/common/gtk_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698