aboutsummaryrefslogtreecommitdiff
path: root/src/volume-warning.vala
Commit message (Collapse)AuthorAgeFilesLines
* src, tests: fix -Wint-to-pointer-cast and a chance of test crashpersonal/peat-psuwit/protected-superclassRatchanan Srirattanamet2023-11-291-1/+1
| | | | | | | | | | | | | | | | | Turns the constructor of `VolumeControl` and `VolumeWarning` from `internal` to `protected`. This makes Vala emits C declaration of constructors, which is required by the test's mocks extending these classes, in the external header. Without them, the mocks' C code would then consider them "implicitly declared", and will assume they return `int` instead of a pointer. If the returned address happened to be higher than `INT_MAX`, the code will consider the returned address negative and sign-extend it when casting to a pointer, corrupting it. As for "unprivating" these constructors, this is an internal static library anyway. No libraries or headers are installed from this package. This change is invisible from outside.
* Add us to the copyright headerRobert Tari2021-08-041-2/+0
|
* Add us to the copyright headerRobert Tari2021-08-041-0/+2
|
* src/volume-warning.vala: Fix static member accessRobert Tari2021-08-041-1/+1
|
* src/volume-warning.vala: Remove the static modifier from constantsRobert Tari2021-08-041-1/+1
|
* Whitespace fixRobert Tari2021-08-041-204/+204
|
* Fix several 'Creation method of abstract class cannot be public.' Vala issues.Mike Gabriel2019-12-021-1/+1
|
* Fork from Ubuntu's indicator-sound.Mike Gabriel2017-10-221-1/+1
|
* Added a new signal in volumeWarning to notify when the user has pressed ↵Xavi Garcia Mena2016-04-151-0/+10
| | | | cancel. We use that to set the volume after pressing cancel, as sometimes setting the accounts service volume steps over the warning level
* Set warning volume to the maximum allowed when the user presses cancelXavi Garcia Mena2016-03-011-3/+7
|
* simplify some code in volume-warning and volume-warning-pulsecharles kerr2015-12-311-39/+34
|
* rename VolumeWarning.high_volume_approved as VolumeWarning.approvedcharles kerr2015-12-311-67/+67
| | | | | | After being moved into a class named "VolumeWarning", the high_volume_ prefix was redunant.
* simplify the Options class' propertiescharles kerr2015-12-301-13/+15
|
* remove ignore_high_volume dupe from volume-warningcharles kerr2015-12-291-14/+0
|
* dampen Pulse floods in vol-warning by requerying no more than once per seccharles kerr2015-12-291-4/+8
|
* copyediting: use vala whitespace style in new codecharles kerr2015-12-291-2/+2
|
* break volume-warning into an abstract base and concrete pulse-based implcharles kerr2015-12-291-182/+12
|
* copyeditingcharles kerr2015-12-291-33/+31
|
* use G_SOURCE_REMOVE instead of falsecharles kerr2015-12-291-2/+2
|
* remove unneeded tracerscharles kerr2015-12-281-13/+5
|
* make tab damage consistentcharles kerr2015-12-281-39/+39
|
* call set_subscribe_callback() /before/ subscribe()charles kerr2015-12-281-1/+1
|
* improve r583's changes to make volume-warning's prop names more readablecharles kerr2015-12-281-11/+11
|
* experiment with making volume-warning's multimedia-active property protectedcharles kerr2015-12-281-12/+13
|
* make VolumeWarning's multimedia-volume property a little more readablecharles kerr2015-12-281-15/+15
|
* in volume-warning's set_multimedia_volume(), test for PA.Volume.INVALIDcharles kerr2015-12-281-0/+1
|
* fix regression that broke down-volume-button dismissing warning dialogcharles kerr2015-12-281-2/+5
|
* remove earlier unneeded tracerscharles kerr2015-12-281-10/+1
|
* in volume-warning, show the dialog before setting the high-volume propcharles kerr2015-12-281-2/+2
| | | | | | That way warning's 'active' property will be true by the time Service gets around to deciding whether or not to show an info dialog.
* in volume-warning, better use of pa_operations.charles kerr2015-12-281-49/+4
| | | | | | | No need to keep the pa_operation pointers around for cancel() cleanup in volume-warning's pulse dtor -- they are automatically destroyed when closing the context via context -> pdispatch -> unref callbacks.
* remove unneeded idle timer from volume-warningcharles kerr2015-12-281-22/+0
|
* remove earlier unneeded tracerscharles kerr2015-12-281-2/+1
|
* add testing tracerscharles kerr2015-12-281-16/+7
|
* when deciding to show volume warning, check for PA INVALID volumecharles kerr2015-12-281-3/+5
|
* fix tyopcharles kerr2015-12-281-1/+1
|
* fix volume-warning timing issuecharles kerr2015-12-281-3/+13
| | | | | | | before showing the warning dialog, cache the active sink input index because it might change while the dialog is visible (eg the video player pausing playback).
* fix pa_cvolume_set callcharles kerr2015-12-281-12/+7
|
* in volume-warning, use multimedia through direct pulse instead of dbuscharles kerr2015-12-281-132/+54
|
* update volume-warning's 'multimedia-volume' property from pulsecharles kerr2015-12-281-2/+10
|
* in volume-warning, use pulse directly rather than through dbuscharles kerr2015-12-281-27/+181
|
* call show() in an idle func to avoid callback cyclescharles kerr2015-12-211-2/+27
|
* reduce the volume while the warning dialog is activecharles kerr2015-12-211-38/+3
|
* unconfuse Vala's C generator making the PulesAudio.Volume property uint32charles kerr2015-12-211-12/+32
|
* remove unused code from volume-warningcharles kerr2015-12-201-3/+0
|
* remove code duplication between volume-warning and volume-control-pulsecharles kerr2015-12-201-307/+16
| | | | | | | | | let volume-warning's 'multimedia_active' and 'headphones_active' be bound to volume-control's 'active-stream' and 'active-output' properties. Service manages the bindings. This lets us remove all the pacontext code from volume-warning.
* group volume-warning's protected properties togethercharles kerr2015-12-201-43/+46
|
* replace volume-warning's 'volume' property with 'multimedia-volume'charles kerr2015-12-201-210/+135
|
* replace volume-warning's 'stream' property with a more focused ↵charles kerr2015-12-201-56/+44
| | | | 'multimedia-active' property
* in volume-warning, group the pulse methods closer togethercharles kerr2015-12-201-50/+50
|
* refactor 'stop_reconnect_timer' into its own function in volume-warningcharles kerr2015-12-201-6/+11
|