diff -Nru rhythmbox-plugin-artdisplay-0.2/debian/changelog rhythmbox-plugin-artdisplay-0.3/debian/changelog --- rhythmbox-plugin-artdisplay-0.2/debian/changelog 2013-10-31 23:32:14.000000000 +0000 +++ rhythmbox-plugin-artdisplay-0.3/debian/changelog 2015-05-10 15:54:22.000000000 +0000 @@ -1,3 +1,9 @@ +rhythmbox-plugin-artdisplay (0.3-1~rb3) trusty; urgency=medium + + * upstream release - compatible with RB 3.2 + + -- fossfreedom Sun, 10 May 2015 16:53:43 +0100 + rhythmbox-plugin-artdisplay (0.2-1~rb3) trusty; urgency=low * new upstream release for rb3 diff -Nru rhythmbox-plugin-artdisplay-0.2/src/ArtDisplay.py rhythmbox-plugin-artdisplay-0.3/src/ArtDisplay.py --- rhythmbox-plugin-artdisplay-0.2/src/ArtDisplay.py 2013-10-31 23:30:42.000000000 +0000 +++ rhythmbox-plugin-artdisplay-0.3/src/ArtDisplay.py 2015-05-10 15:53:34.000000000 +0000 @@ -71,7 +71,7 @@ has_alpha = pixbuf.get_has_alpha () width, height = pixbuf.props.width, pixbuf.props.height if pad_if_not_near_square and (height < width * ASPECT_RATIO_MIN or - height > width * ASPECT_RATIO_MAX): + height > width * ASPECT_RATIO_MAX): rw, rh = max (width, height), max (width, height) left, top = (rw - width) // 2, (rh - height) // 2 else: @@ -374,7 +374,20 @@ key = entry.create_ext_db_key (RB.RhythmDBPropType.ALBUM) self.art_store.request(key, self.art_store_request_cb, entry) - def art_store_request_cb(self, key, filename, data, entry): + def art_store_request_cb(self, *args): # key, filename, data, entry): + + # rhythmbox 3.2 breaks the API - + # since there isnt a way to say "we are using RB 3.2" we have to hack this... + # need to find the args filename(str), data (pixbuf) and entry (RB.RhythmDBEntry) manually + data = None + for arg in args: + if isinstance(arg, str): + filename = arg + if isinstance(arg, GdkPixbuf.Pixbuf): + data = arg + if isinstance(arg, RB.RhythmDBEntry): + entry = arg + if rb.entry_equal(entry, self.current_entry) is False: # track changed while we were searching return