Skip to content

Commit

Permalink
playlist: bind interactive search to the search widget
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Apr 28, 2017
1 parent e35c3cc commit d345c8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xlgui/widgets/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ def __init__(self, playlist, player):
'playlist_utilities_bar')

self.view = PlaylistView(playlist, player)
self.view.set_search_entry(self.search_entry.entry)
self.view.connect('start-interactive-search', lambda *a: self.search_entry.entry.grab_focus())

self.playlist_window.add(self.view)

event.add_ui_callback(self.on_mode_changed,
Expand Down

0 comments on commit d345c8f

Please sign in to comment.