mirror of
https://github.com/lutris/lutris
synced 2024-10-02 22:14:23 +00:00
Emit game-selected signal from FlowBox (Fixes #421)
This commit is contained in:
parent
1164ff3d22
commit
f470ce4ce4
|
@ -82,6 +82,7 @@ class GameFlowBox(FlowBox):
|
|||
self.set_valign(Gtk.Align.START)
|
||||
|
||||
self.connect('child-activated', self.on_child_activated)
|
||||
self.connect('selected-children-changed', self.on_selection_changed)
|
||||
|
||||
self.set_filter_func(self.filter_func)
|
||||
self.set_sort_func(self.sort_func)
|
||||
|
@ -153,6 +154,9 @@ class GameFlowBox(FlowBox):
|
|||
def on_child_activated(self, widget, child):
|
||||
self.emit('game-activated')
|
||||
|
||||
def on_selection_changed(self, widget):
|
||||
self.emit('game-selected')
|
||||
|
||||
def get_child(self, game_item):
|
||||
for child in self.get_children():
|
||||
widget = child.get_children()[0]
|
||||
|
|
Loading…
Reference in a new issue