From b467d4f96bd1d5525f59186551196fd5964c56b8 Mon Sep 17 00:00:00 2001
From: "Hone Jen Yee (PCMan)" <pcman.tw@gmail.com>
Date: Tue, 6 Aug 2013 16:16:09 +0800
Subject: [PATCH] Adopt recent changes of libfm. FmIcon is essentially
identical to GIcon now.
---
libfm-qt/icontheme.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libfm-qt/icontheme.cpp b/libfm-qt/icontheme.cpp
index 3c4e660..daf3017 100644
--- a/libfm-qt/icontheme.cpp
+++ b/libfm-qt/icontheme.cpp
@@ -83,7 +83,7 @@ QIcon IconTheme::icon(FmIcon* fmicon) {
QIcon* picon = reinterpret_cast<QIcon*>(fm_icon_get_user_data(fmicon));
if(!picon) { // we don't have a cache yet
picon = new QIcon(); // what a waste!
- *picon = convertFromGIcon(fmicon->gicon);
+ *picon = convertFromGIcon(G_ICON(fmicon));
fm_icon_set_user_data(fmicon, picon); // store it in FmIcon
}
return *picon;
--
1.8.5.1