Rafał Dzięgiel
60d4b5aec1
widget: Do gestures in capture phase
...
Capture phase runs from the toplevel down to the event widget and is meant to be used
in containers that might possibly handle events before their children, like our OSD layer.
This avoids an issue where pressing an OSD button does not emit cancelled signal,
accidentally triggering long press gesture signal handler.
Fixes #170
2021-10-04 10:11:53 +02:00
Rafał Dzięgiel
bafffa59b9
Fix missing translator-credits
2021-09-14 16:40:09 +02:00
Rafał Dzięgiel
201cb6f64c
actions: Also allow mute with "M" key alone
...
For faster access
2021-09-14 13:09:23 +02:00
Rafał Dzięgiel
636098182b
actions: Keep consistent letters case
2021-09-14 13:06:44 +02:00
Rafał Dzięgiel
5442b0b70a
uri-dialog: Catch errors when reading from clipboard
...
The clipboard.read_text_finish method might throw an error when something goes wrong. Catch it and print in debug message. There is no alternative clipboard reading, so simply ignore.
2021-09-14 13:00:14 +02:00
Rafał Dzięgiel
02a7419d66
Merge pull request #155 from Rafostar/scaling
...
Scale fullscreen differently depending on monitor res
2021-09-11 12:18:13 +02:00
Rafał Dzięgiel
e727b8fb50
Scale fullscreen differently depending on monitor res
2021-09-11 11:22:15 +02:00
Rafostar
3cbfd1a57c
Fix chapter popover parenting
2021-09-10 19:28:27 +02:00
Rafał Dzięgiel
b293a84df6
Skip hiding already hidden tracks radio buttons
...
Does not change much, but removes some useless logging
2021-09-09 22:08:20 +02:00
Rafał Dzięgiel
928244dc32
prefs: Show icon in plugins with modified feature ranks
2021-09-09 12:10:54 +02:00
Rafał Dzięgiel
dbeb4cb0b7
misc: Cleanup imports resolve code
...
It does not look like we will be able to provide gresources in near future (ever?). Remove those checks for less logic at startup.
2021-09-08 21:32:42 +02:00
Rafał Dzięgiel
b5007d12a1
remote: Use system play/pause icons
...
Those were taken from gresource, but since Remote is a different app, it does not use original clapper gresource. Use system icons for now.
2021-09-08 20:22:32 +02:00
Rafał Dzięgiel
98d2b80103
Add PiP and play icons as gresource
...
Add missing PiP icons from web devel kit. Also add play/pause
icons at the right size and remove all workarounds/scaling
implemented or these two.
Playback icons are always two bars for pause and triangle for play,
so hopefully this will not be problematic, as this guaranties the
right size for them that Adwaita unfortunately cannot provide.
2021-09-07 19:34:59 +02:00
Rafał Dzięgiel
fa39c45773
Remove useless signal connection in about dialog
2021-09-06 20:33:11 +02:00
Rafał Dzięgiel
e8c44dc400
Make end time label translatable
2021-09-06 20:21:18 +02:00
Rafał Dzięgiel
35d359daf9
Mark popovers text as translatable
2021-09-06 19:45:04 +02:00
Rafał Dzięgiel
8733610a9b
Move revealers access away from base classes
...
Those should not appear in base classes, as they are available in main app only
2021-09-06 17:23:36 +02:00
Rafał Dzięgiel
99acd36cc0
api: Always start unmuted
2021-09-06 13:18:57 +02:00
Rafał Dzięgiel
574e084383
Toggle mute with Ctrl+M
...
Closes #117
2021-09-06 12:34:11 +02:00
Rafał Dzięgiel
3483c94913
Completely disable audio track when set to disabled
...
Instead of just muting audio when disabled, tell GStreamer to diable it completely. This is slower, but makes this option do what it was supposed to.
2021-09-06 10:29:44 +02:00
Rafał Dzięgiel
a99abc652a
Do not store subtitle-offset as gsetting
...
This is not something we should remember
2021-09-06 10:12:33 +02:00
Rafostar
a16444cefb
Do not set subtitle-offset at startup
...
We should always start without any offset for subtitles
2021-09-05 20:44:12 +02:00
Rafostar
65673dbf4f
Add window mapped debug message
2021-09-05 17:55:16 +02:00
Rafostar
dea67e4712
Prepare for resource loading
...
Cleanup the Clapper install path detection code in a way to make gresources loading eventually possible for compiled builds
2021-09-05 17:55:11 +02:00
Rafostar
3c765e9f17
Add some init debug messages
...
To get an overall idea how long initialization takes
2021-09-05 17:54:55 +02:00
Rafostar
a77eb5352e
cleanup: Remove unused clapperVersion variable
2021-09-05 11:47:24 +02:00
Rafostar
ca168f34ed
controls: Use isFullscreen and isMobile from main widget
...
The "controls.isMobile" was used incorrectly here as it holds value if
controls are in mobile mode, not if running on mobile screen.
Use those values from clapper main widget instead. This fixes incorrect
chapter popover placement on mobile screens.
Also handle fine-tune in CSS as this code path is hit multiple times
when starting/stopping slider drag.
2021-09-05 11:30:46 +02:00
Rafał Dzięgiel
70942ba419
prefs: Mark experimental options
...
Options not fully reliable with possibility to break playback. Better mark them as experimental then listen to users complaining on daily basis.
2021-09-03 20:08:07 +02:00
Rafał Dzięgiel
38e721be03
prefs: Add playbin3 and pipewire options
2021-09-03 11:35:23 +02:00
Rafał Dzięgiel
dc25ec976a
Name our classes
...
In order to not end up with random names prefixed with Gjs_, give each class a proper name, so its easier to inspect and allows usage with UI files
2021-09-02 20:12:39 +02:00
Rafał Dzięgiel
914292612b
Show libadwaita version in about system
2021-09-02 19:27:00 +02:00
Rafał Dzięgiel
e34b164f5a
Auto fill open URI entry with clipboard content
...
If clipboard contains a valid URI, prefill the entry with it. Also select all of it to make it easier to remove this text.
2021-09-02 18:58:51 +02:00
Rafał Dzięgiel
2e0a455f92
dialogs: Use response virtual function instead of signal
2021-09-02 17:29:56 +02:00
Rafał Dzięgiel
3aab01d35c
Improved open URI dialog
2021-09-02 17:22:09 +02:00
Rafał Dzięgiel
e264304c9d
Mark text in remaining dialogs as translatable
2021-09-02 13:26:06 +02:00
Rafał Dzięgiel
a145890f9d
Fix disabling plugin feature with zero rank
2021-09-01 17:53:23 +02:00
Rafał Dzięgiel
4f1d9be423
Fix case with missing subtitle tracks
...
In case when first video has a lot of subtitles, second video has only a few and third one more then second one, we forgot to make the recycled toggle buttons visible again, causing some tracks to be missing
2021-09-01 17:26:10 +02:00
Rafał Dzięgiel
451711b9c6
Show current video/audio decoder in popover
2021-09-01 14:28:15 +02:00
Rafał Dzięgiel
bbada8fb4e
Redo controls popovers into GtkMenuButtons
2021-09-01 14:25:42 +02:00
Rafał Dzięgiel
04122d46a7
Move popover separator into .ui
...
Allows reusing a custom separator in multiple popovers
2021-08-31 10:55:25 +02:00
Rafał Dzięgiel
2686c2ca03
Quietly handle ranking gsetting change after app update
...
Do not print errors for everyone who updates Clapper from 0.3.0 version.
How plugin ranking is stored in gsettings changed. Instead reset it quietly
into new defaults to avoid problems.
Also since now GstClapper API sets some default ranks based on installed
GStreamer version, hopefully this ranking will be only an edge case for
people who want to experiment or need to test/debug some GStreamer plugin.
2021-08-27 13:30:14 +02:00
Rafał Dzięgiel
ad563d16d0
Move init functions into main where they should be
...
It seems that libadwaita does not like being initialized too early. Move the init function into the beggining of main() to make it happy.
2021-08-27 12:56:58 +02:00
Rafał Dzięgiel
a1ce04edfa
Initial translations support
...
Most of the app is now translatable, so put a POT file in git and make app use translations if available
2021-08-25 11:23:43 +02:00
Rafał Dzięgiel
5874db45ea
api: Introduce custom gstreamer init function
...
Initializes GStreamer library and tweaks some of its defaults to our liking.
This also allows usage of GstClapper API alone without importing GStreamer on the implementation side.
It changes preferred hardware acceleration order (depending on plugins versions) into:
v4l2sl -> nv -> va -> vaapi -> v4l2
2021-08-24 14:15:29 +02:00
Rafał Dzięgiel
c50df5f2a3
Merge pull request #129 from Rafostar/libadwaita
...
Initialize with libadwaita, port preferences window to be adaptive and do few CSS tweaks to improve overall app look.
2021-08-23 18:33:21 +02:00
Rafał Dzięgiel
2656762cbc
Fix chapter popover coordinates
2021-08-23 15:57:11 +02:00
Rafał Dzięgiel
c8a5277908
Port preferences window to libadwaita
2021-08-22 16:09:23 +02:00
Rafał Dzięgiel
62fab289b7
Few small CSS optimizations for new Adwaita theme
2021-08-06 09:11:39 +02:00
Rafał Dzięgiel
56ca13b370
Remove GTK 4.0.2+ theme workarounds
2021-08-06 09:11:34 +02:00
Rafał Dzięgiel
9ba6f5d09e
Apply "osd" CSS class to each button in headerbar
...
Otherwise it does not work correctly with new Adwaita theme
2021-08-06 09:11:14 +02:00