[gnome-music] albumartcache: make it a GObject
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] albumartcache: make it a GObject
- Date: Wed, 15 Jul 2015 12:01:32 +0000 (UTC)
commit 95fe1d9e3f308ea56d97cc3881f005b3d1dc3fe4
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Wed Jul 15 13:32:45 2015 +0200
albumartcache: make it a GObject
gnomemusic/albumArtCache.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 5f5c453..85f266c 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -29,7 +29,7 @@
import gi
gi.require_version('MediaArt', '2.0')
-from gi.repository import Gtk, GdkPixbuf, Gio, GLib, Gdk, MediaArt
+from gi.repository import Gtk, GdkPixbuf, Gio, GLib, Gdk, MediaArt, GObject
from gettext import gettext as _
import cairo
from math import pi
@@ -80,7 +80,7 @@ def _make_icon_frame(pixbuf, path=None):
return border_pixbuf
-class AlbumArtCache:
+class AlbumArtCache(GObject.GObject):
instance = None
blacklist = {}
itr_queue = []
@@ -130,6 +130,7 @@ class AlbumArtCache:
@log
def __init__(self):
+ GObject.GObject.__init__(self)
try:
self.cacheDir = os.path.join(GLib.get_user_cache_dir(), 'media-art')
if not os.path.exists(self.cacheDir):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]