diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-10 20:11:23 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-10 20:11:23 +0000 |
commit | 4692966bece55451e05a794ae064f3a3d16e2aa2 (patch) | |
tree | 090eb686373349d10b1c6f82c492c59845bfb7f9 /app/gfx/canvas_linux.cc | |
parent | 10b5d641e5b1149e5383aafdecd6447adce56031 (diff) | |
download | chromium_src-4692966bece55451e05a794ae064f3a3d16e2aa2.zip chromium_src-4692966bece55451e05a794ae064f3a3d16e2aa2.tar.gz chromium_src-4692966bece55451e05a794ae064f3a3d16e2aa2.tar.bz2 |
Use system default favicon in tab strip when using GTK theme.
Review URL: http://codereview.chromium.org/164266
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/canvas_linux.cc')
-rw-r--r-- | app/gfx/canvas_linux.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/gfx/canvas_linux.cc b/app/gfx/canvas_linux.cc index 155221c..c42df59 100644 --- a/app/gfx/canvas_linux.cc +++ b/app/gfx/canvas_linux.cc @@ -234,4 +234,10 @@ void Canvas::DrawStringInt(const std::wstring& text, // NOTE: beginPlatformPaint returned its surface, we shouldn't destroy it. } +void Canvas::DrawGdkPixbuf(GdkPixbuf* pixbuf, int x, int y) { + cairo_t* cr = beginPlatformPaint(); + gdk_cairo_set_source_pixbuf(cr, pixbuf, x, y); + cairo_paint(cr); +} + } // namespace gfx |