[gnome-music] playlistcontrols: Use accessor for event keyval



commit 3c226bef488d547882ed10acf0ad466e9f7abb36
Author: Tyler Garcia <tyler tylergarcia net>
Date:   Fri Aug 10 22:59:33 2018 -0700

    playlistcontrols: Use accessor for event keyval
    
    Event fields are deprecated.
    
    Closes: #213

 gnomemusic/widgets/playlistcontrols.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/playlistcontrols.py b/gnomemusic/widgets/playlistcontrols.py
index 8ed00639..d83b8a53 100644
--- a/gnomemusic/widgets/playlistcontrols.py
+++ b/gnomemusic/widgets/playlistcontrols.py
@@ -70,7 +70,8 @@ class PlaylistControls(Gtk.Grid):
     @Gtk.Template.Callback()
     @log
     def _on_rename_entry_key_pressed(self, widget, event):
-        if event.keyval == Gdk.KEY_Escape:
+        (_, keyval) = event.get_keyval()
+        if keyval == Gdk.KEY_Escape:
             self.disable_rename_playlist()
 
     @Gtk.Template.Callback()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]