summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/bookmarks
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-16 21:56:19 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-16 21:56:19 +0000
commite11411d3e34131a3d7c4b5cecc4bfdc2cc57db9d (patch)
tree3479064ff58670c00b8f3ea08221235f534381bd /chrome/browser/ui/gtk/bookmarks
parent9bc0f4adb5370267e68e38c0278658628d46dac1 (diff)
downloadchromium_src-e11411d3e34131a3d7c4b5cecc4bfdc2cc57db9d.zip
chromium_src-e11411d3e34131a3d7c4b5cecc4bfdc2cc57db9d.tar.gz
chromium_src-e11411d3e34131a3d7c4b5cecc4bfdc2cc57db9d.tar.bz2
GTK: Stamp out the final GetSurface.* methods in GtkThemeService.
BUG=106060 TEST=none Review URL: http://codereview.chromium.org/8916016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/bookmarks')
-rw-r--r--chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc4
-rw-r--r--chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc4
-rw-r--r--chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc5
3 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
index a1ba07b..6adb13c 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
@@ -29,6 +29,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/gfx/gtk_util.h"
+#include "ui/gfx/image/image.h"
#include "ui/gfx/point.h"
#if defined(TOOLKIT_VIEWS)
@@ -588,7 +589,8 @@ void BookmarkEditorGtk::AddNewFolder(GtkTreeIter* parent, GtkTreeIter* child) {
gtk_tree_store_append(tree_store_, child, parent);
gtk_tree_store_set(
tree_store_, child,
- bookmark_utils::FOLDER_ICON, GtkThemeService::GetFolderIcon(true),
+ bookmark_utils::FOLDER_ICON,
+ GtkThemeService::GetFolderIcon(true)->ToGdkPixbuf(),
bookmark_utils::FOLDER_NAME,
l10n_util::GetStringUTF8(IDS_BOOKMARK_EDITOR_NEW_FOLDER_NAME).c_str(),
bookmark_utils::ITEM_ID, static_cast<int64>(0),
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
index 04a9d79..180076c 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h"
#include "chrome/browser/ui/gtk/gtk_theme_service.h"
+#include "ui/gfx/image/image.h"
namespace {
@@ -25,7 +26,8 @@ void AddSingleNodeToTreeStore(GtkTreeStore* store, const BookmarkNode* node,
// (and indeed, Nautilus does not render an expanded directory any
// differently).
gtk_tree_store_set(store, iter,
- bookmark_utils::FOLDER_ICON, GtkThemeService::GetFolderIcon(true),
+ bookmark_utils::FOLDER_ICON,
+ GtkThemeService::GetFolderIcon(true)->ToGdkPixbuf(),
bookmark_utils::FOLDER_NAME,
UTF16ToUTF8(node->GetTitle()).c_str(),
bookmark_utils::ITEM_ID, node->id(),
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
index 2934bbc..37b22e0b 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc
@@ -23,6 +23,7 @@
#include "ui/gfx/canvas_skia_paint.h"
#include "ui/gfx/font.h"
#include "ui/gfx/gtk_util.h"
+#include "ui/gfx/image/image.h"
namespace {
@@ -170,11 +171,11 @@ GdkPixbuf* GetPixbufForNode(const BookmarkNode* node, BookmarkModel* model,
if (model->GetFavicon(node).width() != 0) {
pixbuf = gfx::GdkPixbufFromSkBitmap(&model->GetFavicon(node));
} else {
- pixbuf = GtkThemeService::GetDefaultFavicon(native);
+ pixbuf = GtkThemeService::GetDefaultFavicon(native)->ToGdkPixbuf();
g_object_ref(pixbuf);
}
} else {
- pixbuf = GtkThemeService::GetFolderIcon(native);
+ pixbuf = GtkThemeService::GetFolderIcon(native)->ToGdkPixbuf();
g_object_ref(pixbuf);
}