From c85ac490eb984a24c79178ea8fd8d310b24de6eb Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 5 Aug 2016 16:43:58 +0200 Subject: enables Alt-1…n to set source to fullscreen, fixes #72 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voctogui/README.md | 5 +++++ voctogui/lib/videopreviews.py | 3 +++ 2 files changed, 8 insertions(+) (limited to 'voctogui') diff --git a/voctogui/README.md b/voctogui/README.md index 6c5fd84..cf907e2 100644 --- a/voctogui/README.md +++ b/voctogui/README.md @@ -19,6 +19,11 @@ - `Ctrl+2` Source Nr. 2 - … +### Set Fullscteen +- `Alt+1` Source Nr. 1 +- `Alt+2` Source Nr. 2 +- … + ### Other options - `t` Cut diff --git a/voctogui/lib/videopreviews.py b/voctogui/lib/videopreviews.py index fe41aea..3490a4d 100644 --- a/voctogui/lib/videopreviews.py +++ b/voctogui/lib/videopreviews.py @@ -87,6 +87,9 @@ class VideoPreviewsController(object): btn_fullscreen.connect('clicked', self.btn_fullscreen_clicked) + key, mod = Gtk.accelerator_parse('%u' % (idx+1)) + btn_fullscreen.add_accelerator('activate', accelerators, key, mod, Gtk.AccelFlags.VISIBLE) + self.preview_players[source] = player self.previews[source] = preview self.a_btns[source] = btn_a -- cgit v1.2.3