[gnome-documents] docfactory: fix last commit
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] docfactory: fix last commit
- Date: Fri, 26 Aug 2011 18:52:38 +0000 (UTC)
commit 12682a688a9ee06c7ba1eefa81a9e351ccf2870e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 26 14:52:00 2011 -0400
docfactory: fix last commit
src/docFactory.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/docFactory.js b/src/docFactory.js
index a91777e..0b63a66 100644
--- a/src/docFactory.js
+++ b/src/docFactory.js
@@ -119,7 +119,8 @@ DocCommon.prototype = {
try {
let iconInfo = theme.lookup_by_gicon(emblemedIcon,
- this.pixbuf.get_height(),
+ Math.max(this.pixbuf.get_width(),
+ this.pixbuf.get_height()),
Gtk.IconLookupFlags.FORCE_SIZE);
this.pixbuf = iconInfo.load_icon();
} catch (e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]