[gnome-music/wip/merge: 118/343] window: correctly create GLib.Variant
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 118/343] window: correctly create GLib.Variant
- Date: Thu, 25 Jul 2013 11:23:20 +0000 (UTC)
commit ac710dad4e0ce12ea43a42e35f2893d8e705c04d
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Jul 15 16:41:05 2013 +0200
window: correctly create GLib.Variant
gnomemusic/window.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 2e1b989..1f5eb51 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -26,7 +26,7 @@ class Window(Gtk.ApplicationWindow):
'org.gnome.SettingsDaemon.MediaKeys',
None)
self.proxy.call_sync('GrabMediaPlayerKeys',
- GLib.Variant.new('(su)', 'Music'),
+ GLib.Variant('(su)', ('Music', 0)),
Gio.DBusCallFlags.NONE,
-1,
None)
@@ -34,7 +34,7 @@ class Window(Gtk.ApplicationWindow):
def _windowsFocusCb(self, window, event):
self.proxy.call_sync('GrabMediaPlayerKeys',
- GLib.Variant.new('(su)', 'Music'),
+ GLib.Variant('(su)', ('Music', 0)),
Gio.DBusCallFlags.NONE,
-1,
None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]