[gnome-music] window: Replace deprecated add_accelerator call
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] window: Replace deprecated add_accelerator call
- Date: Tue, 16 Jan 2018 20:57:53 +0000 (UTC)
commit 12ecb35d50a219659dd7830f4845aa72a6b71b26
Author: Subhadip Jana <subhadip1997a gmail com>
Date: Tue Jan 9 00:11:21 2018 +0100
window: Replace deprecated add_accelerator call
Use set_accels_for_action method instead.
gnomemusic/window.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 16e7206..96f5185 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -70,7 +70,7 @@ class Window(Gtk.ApplicationWindow):
self.settings = Gio.Settings.new('org.gnome.Music')
self.add_action(self.settings.create_action('repeat'))
selectAll = Gio.SimpleAction.new('selectAll', None)
- app.add_accelerator('<Primary>a', 'win.selectAll', None)
+ app.set_accels_for_action('win.selectAll', ['<Primary>a'])
selectAll.connect('activate', self._on_select_all)
self.add_action(selectAll)
selectNone = Gio.SimpleAction.new('selectNone', None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]