[Pkg-kde-extras] Bug#527725: tripod: FTBFS: ipodexportdialog.cpp:375: error: 'ITDB_THUMB_PHOTO_SMALL' was not declared in this scope
Ilya Barygin
barygin at gmail.com
Sun Mar 7 19:11:44 UTC 2010
tags 527725 patch
thanks
From https://launchpad.net/ubuntu/+source/tripod/0.7.0-2ubuntu1 :
--- tripod-0.7.0.orig/tripod/src/ipodexportdialog.cpp
+++ tripod-0.7.0/tripod/src/ipodexportdialog.cpp
@@ -11,6 +11,11 @@
* *
***************************************************************************/
+// System Includes
+extern "C" {
+#include <gdk-pixbuf/gdk-pixbuf.h>
+}
+
#include "ipodheader.h"
#include "imagelist.h"
#include "imagelistitem.h"
@@ -372,9 +377,13 @@
return;
Itdb_Artwork *artwork = item->artwork();
- Itdb_Thumb *thumb = itdb_artwork_get_thumb_by_type( artwork, ITDB_THUMB_PHOTO_SMALL );
+ GdkPixbuf *gpixbuf = NULL;
+
+ // First arg in itdb_artwork_get_pixbuf(...) is pointer to Itdb_Device struct,
+ // in kipiplugin-ipodexport it is m_itdb->device. i hope it _is_ initialiezed
+ gpixbuf = (GdkPixbuf*) itdb_artwork_get_pixbuf( m_itdb->device, artwork, -1, -1 );
- if( !thumb )
+ if( !gpixbuf )
{
debug() << "no thumb was found" << endl;
return;
@@ -389,6 +398,9 @@
// QPixmap pix;
// pix.convertFromImage( image );
// m_ipodPreview->setPixmap( pix );
+
+ // memory release
+ gdk_pixbuf_unref ( gpixbuf );
}
void
More information about the pkg-kde-extras
mailing list