[gnome-music] Have a white background for default icons
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Have a white background for default icons
- Date: Wed, 8 May 2013 17:15:12 +0000 (UTC)
commit 87c6a25b27cec5348bac5e830f09fc0fc7e9c13d
Author: Guillaume Quintard <guillaume quintard gmail com>
Date: Wed May 8 17:47:40 2013 +0200
Have a white background for default icons
Fixes bug 699769
Signed-off-by: Seif Lotfy <seif lotfy com>
src/view.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 2287aff..6bfc75c 100644
--- a/src/view.js
+++ b/src/view.js
@@ -290,14 +290,17 @@ const ViewContainer = new Lang.Class({
icon.get_bits_per_sample(),
icon.get_width()*4,
icon.get_height()*4);
- result.fill(0x00000000);
+ result.fill(0xffffffff);
- icon.copy_area(0, 0,
+ icon.composite(result,
+ icon.get_width()*3/2,
+ icon.get_height()*3/2,
icon.get_width(),
icon.get_height(),
- result,
icon.get_width()*3/2,
- icon.get_height()*3/2);
+ icon.get_height()*3/2,
+ 1, 1,
+ GdkPixbuf.InterpType.NEAREST, 0xff)
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]