diff options
author | MaZderMind <git@mazdermind.de> | 2016-08-05 16:43:58 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-08-05 16:49:34 +0200 |
commit | c85ac490eb984a24c79178ea8fd8d310b24de6eb (patch) | |
tree | 7b236d3955eb6b33489ff0c88fd1d3e82b34535b /voctogui/lib | |
parent | fa3229dc6726fe35fc22f6aeef45b76b12bf5c24 (diff) |
enables Alt-1…n to set source to fullscreen, fixes #72
Diffstat (limited to 'voctogui/lib')
-rw-r--r-- | voctogui/lib/videopreviews.py | 3 |
1 files changed, 3 insertions, 0 deletions
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('<Alt>%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 |