[gnome-games] games-page: Enable selection mode on right click and long press
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] games-page: Enable selection mode on right click and long press
- Date: Tue, 23 Mar 2021 21:10:25 +0000 (UTC)
commit af00f7a739a20c1e98ee327fddeb6023521ba8f4
Author: Neville <nevilleantony98 gmail com>
Date: Tue Aug 25 19:06:44 2020 +0530
games-page: Enable selection mode on right click and long press
Enables selection mode with the currently selected item as selected on
right clicking or long pressing a GameIconView.
src/ui/games-page.vala | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/ui/games-page.vala b/src/ui/games-page.vala
index 27a2dee9..625af703 100644
--- a/src/ui/games-page.vala
+++ b/src/ui/games-page.vala
@@ -233,6 +233,14 @@ private class Games.GamesPage : Gtk.Bin {
selected_items_changed ();
});
+ game_icon.secondary_click.connect (() => {
+ if (is_selection_mode)
+ return;
+
+ is_selection_mode = true;
+ game_icon.activate ();
+ });
+
return game_icon;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]