mirror of
https://github.com/lutris/lutris
synced 2024-11-02 08:20:51 +00:00
fixed contextual menu for icon view
This commit is contained in:
parent
216555e946
commit
3a75cf7bec
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,7 @@ class GameView(object):
|
|||
return
|
||||
try:
|
||||
view.current_path = view.get_path_at_pos(event.x, event.y)
|
||||
view.select_path(view.current_path)
|
||||
except ValueError:
|
||||
(_, path) = view.get_selection().get_selected()
|
||||
view.current_path = path
|
||||
|
@ -224,6 +225,7 @@ class GameIconView(Gtk.IconView, GameView):
|
|||
self.connect('selection-changed', self.on_selection_changed)
|
||||
self.connect('filter-updated', self.update_filter)
|
||||
self.connect('size-allocate', GameIconView.on_size_allocate)
|
||||
self.connect('button-press-event', self.popup_contextual_menu)
|
||||
|
||||
def on_size_allocate(self, allocation):
|
||||
[self.set_columns(m) for m in [1, self.get_columns()]]
|
||||
|
|
Loading…
Reference in a new issue