summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_manager_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-08 02:18:31 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-08 02:18:31 +0000
commit94d88ad381bbb235cde17c9a7c5849331945d9c9 (patch)
tree34f7025f687dc63618bf32659fe0c19b45c33f0f /chrome/browser/gtk/bookmark_manager_gtk.cc
parentf73eb0b562eb18036042c27a71fdff9fe6a33a13 (diff)
downloadchromium_src-94d88ad381bbb235cde17c9a7c5849331945d9c9.zip
chromium_src-94d88ad381bbb235cde17c9a7c5849331945d9c9.tar.gz
chromium_src-94d88ad381bbb235cde17c9a7c5849331945d9c9.tar.bz2
GTK: Use stock icons for bookmark folder and default favicon.
In the main window, in the default theme, we still use the chrome icons. There are still several more places that need updating: the tab strip, the task manager, etc. I will deal with that later. BUG=13320 Review URL: http://codereview.chromium.org/165194 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_manager_gtk.cc')
-rw-r--r--chrome/browser/gtk/bookmark_manager_gtk.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/gtk/bookmark_manager_gtk.cc b/chrome/browser/gtk/bookmark_manager_gtk.cc
index 19fee77..a7a516d 100644
--- a/chrome/browser/gtk/bookmark_manager_gtk.cc
+++ b/chrome/browser/gtk/bookmark_manager_gtk.cc
@@ -611,6 +611,7 @@ void BookmarkManagerGtk::BuildLeftStore() {
model_->GetBookmarkBarNode()->id(), left_store_, &select_iter);
gtk_tree_selection_select_iter(left_selection(), &select_iter);
+ // TODO(estade): is there a decent stock icon we can use here?
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
gtk_tree_store_append(left_store_, &select_iter, NULL);
gtk_tree_store_set(left_store_, &select_iter,
@@ -622,15 +623,18 @@ void BookmarkManagerGtk::BuildLeftStore() {
bookmark_utils::ITEM_ID, kRecentID,
-1);
+ GdkPixbuf* search_icon = gtk_widget_render_icon(
+ window_, GTK_STOCK_FIND, GTK_ICON_SIZE_MENU, NULL);
gtk_tree_store_append(left_store_, &select_iter, NULL);
gtk_tree_store_set(left_store_, &select_iter,
bookmark_utils::FOLDER_ICON,
- rb.GetPixbufNamed(IDR_BOOKMARK_MANAGER_SEARCH_ICON),
+ search_icon,
bookmark_utils::FOLDER_NAME,
l10n_util::GetStringUTF8(
IDS_BOOKMARK_TREE_SEARCH_NODE_TITLE).c_str(),
bookmark_utils::ITEM_ID, kSearchID,
-1);
+ g_object_unref(search_icon);
}
void BookmarkManagerGtk::BuildRightStore() {
@@ -735,7 +739,7 @@ void BookmarkManagerGtk::SetRightSideColumnValues(int row, GtkTreeIter* iter) {
// TODO(estade): building the path could be optimized out when we aren't
// showing the path column.
const BookmarkNode* node = right_tree_model_->GetNodeForRow(row);
- GdkPixbuf* pixbuf = bookmark_utils::GetPixbufForNode(node, model_);
+ GdkPixbuf* pixbuf = bookmark_utils::GetPixbufForNode(node, model_, true);
std::wstring title =
right_tree_model_->GetText(row, IDS_BOOKMARK_TABLE_TITLE);
std::wstring url = right_tree_model_->GetText(row, IDS_BOOKMARK_TABLE_URL);