[gnome-music] notification: Pass a tuple to variant instead of list
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] notification: Pass a tuple to variant instead of list
- Date: Mon, 28 Apr 2014 13:29:13 +0000 (UTC)
commit 620334f19fc1040da45bb321c3c334b79604326b
Author: Arnel Borja <arnelborja src gnome org>
Date: Mon Apr 28 19:51:21 2014 +0800
notification: Pass a tuple to variant instead of list
The serialized data for the media art should be a tuple, not a list.
This makes the update of the media art to fail if it is not found.
https://bugzilla.gnome.org/show_bug.cgi?id=729100
gnomemusic/notification.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/notification.py b/gnomemusic/notification.py
index 7535439..6f359c6 100644
--- a/gnomemusic/notification.py
+++ b/gnomemusic/notification.py
@@ -115,8 +115,8 @@ class NotificationManager:
data = image.get_pixels()
serialized = GLib.Variant('(iiibiiay)',
- [IMAGE_SIZE, IMAGE_SIZE, rowStride, hasAlpha,
- bitsPerSample, nChannels, data])
+ (IMAGE_SIZE, IMAGE_SIZE, rowStride, hasAlpha,
+ bitsPerSample, nChannels, data))
self._notification.set_hint('image-data', serialized)
self._notification.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]