From 3a75cf7bec727d09025e22f7fc00c9830f21e67f Mon Sep 17 00:00:00 2001 From: Mathieu Comandon Date: Tue, 14 Aug 2012 08:42:28 +0200 Subject: [PATCH] fixed contextual menu for icon view --- lutris/gui/widgets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lutris/gui/widgets.py b/lutris/gui/widgets.py index 93fbfc993..d605b60af 100644 --- a/lutris/gui/widgets.py +++ b/lutris/gui/widgets.py @@ -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()]]