aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.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.
* license headers: Stop using the '©' character.Mike Gabriel2021-11-191-1/+1
|
* Fix several 'Creation method of abstract class cannot be public.' Vala issues.Mike Gabriel2019-12-021-1/+1
|
* sync with trunk.15.10Charles Kerr2016-01-061-0/+6
|\
* | make VolumeControl::active_output easier to mock for testscharles kerr2015-12-301-1/+1
| |
* | remove unused field VolumeControl.pre_clamp_volumecharles kerr2015-12-281-6/+0
| |
* | always keep volume-control's 'stream' property updatedcharles kerr2015-12-201-1/+8
| |
* | remove 'high_volume' property from volume-controlcharles kerr2015-12-191-3/+0
| |
* | remove set_warning_volume() from volume-controlcharles kerr2015-12-191-1/+0
| |
* | remove 'ready' property from volume-warningcharles kerr2015-12-191-1/+1
| |
* | remove 'is-playing' property from volume-warningcharles kerr2015-12-191-1/+1
| |
* | remove high-volume-approved from volume-controlcharles kerr2015-12-191-2/+0
| |
* | remove ignore_high_volume from volume-controlcharles kerr2015-12-191-1/+0
| |
* | move loudness warning's enabled & decibels from volume-control-pulse to optionscharles kerr2015-12-191-2/+1
| |
* | move max_volume into a reusable 'options' classcharles kerr2015-12-191-2/+7
|/
* Added workaround for Maroon in Trouble, second optionXavi Garcia Mena2015-12-171-0/+1
|
* rolling back ↵Xavi Garcia Mena2015-12-141-2/+1
| | | | lp:~xavi-garcia-mena/indicator-sound/bug-1512798-reenable-amplified-volume
* Merged ↵Xavi Garcia Mena2015-12-091-1/+2
|\ | | | | | | lp:~xavi-garcia-mena/indicator-sound/bug-1512798-reenable-amplified-volume
| * Restore code to allow amplified volumeXavi Garcia Mena2015-11-101-1/+2
| |
* | Setting user selected volume when pressing OK in the high volume dialogXavi Garcia Mena2015-12-041-0/+6
| |
* | Added a CALL mode and avoid sending output notifications when we have an ↵Xavi Garcia Mena2015-11-231-1/+2
| | | | | | | | incoming call
* | restore warning level volume when warning dialog is cancelledXavi Garcia Mena2015-11-191-0/+1
| |
* | Fix issues with warning dialogXavi Garcia Mena2015-11-191-0/+1
| |
* | Added USB and HDMI active outputsXavi Garcia Mena2015-10-051-1/+6
| |
* | Changed to show a notification when the active output changesXavi Garcia Mena2015-10-011-2/+8
| |
* | Adding the code to change the icons and label when a bluetooth headset is ↵Xavi Garcia Mena2015-09-291-0/+3
|/ | | | connected
* copyediting: make tabs use in the new code consistent with existing codebaseCharles Kerr2015-08-121-7/+7
|
* set the default value of max-volume to 1.0 so that tests behave nicely ↵Charles Kerr2015-08-111-1/+1
| | | | without explicitly having to set this value.
* clamp the volume whenever the 'high volume' confirmation notification is open.Charles Kerr2015-08-111-0/+1
|
* huge pile of diff that consolidates pulse-specific audio work into ↵Charles Kerr2015-08-101-1/+12
| | | | volume-control-pulse. Work in progress. Promising but currently ugly.
* Change volume to an object with an attached reason so we can make better ↵Ted Gould2015-02-171-1/+15
| | | | choices up the stack
* Forgot to add this file a lot earlierTed Gould2015-02-121-0/+33
|
* Putting an interface in for volume controlTed Gould2015-02-091-917/+0
|
* Track output modeTed Gould2015-01-301-0/+8
|
* Ensure that the active port is not null before looking at its value Fixes: ↵Ted Gould2015-01-291-4/+4
|\ | | | | | | | | | | #1399862 Approved by: Antti Kaijanmäki, PS Jenkins bot
| * Ensure that the active port is not null before looking at its valueTed Gould2014-12-061-3/+4
| |
* | Move notification code out of volume control object Ted Gould2015-01-291-97/+44
|\ \ | | | | | | | | | Approved by: Charles Kerr, Jussi Pakkanen, PS Jenkins bot
| * | Encapsulate high volume betterTed Gould2014-12-041-5/+16
| | |
| * | Switch from having custom signals for volume changing to using the property ↵Ted Gould2014-12-031-11/+8
| | | | | | | | | | | | change signals.
| * | Moving the notification into the serviceTed Gould2014-12-021-83/+22
| |/
* / Fix crash when active_port is null.Dmitry Shachnev2014-11-231-2/+3
|/
* Missed part of a mergeTed Gould2014-11-051-10/+0
|
* Warn on high audio levels when using headphones (LP: #123633, #1373404)Ted Gould2014-11-051-7/+68
|\
| * Commenting out the sound for nowTed Gould2014-10-151-0/+3
| |
| * Make volume icons match the panel iconsTed Gould2014-10-151-3/+5
| |
| * Check more precisely the valid rolesTed Gould2014-10-141-1/+2
| |
| * Make High-volume text work correctlyMirco Müller2014-10-141-1/+4
| |
| * Merge trunkTed Gould2014-10-141-0/+3
| |\
| * | Ensure that we're always getting a vlue in the listTed Gould2014-10-141-1/+1
| | |
| * | Use title for the a11y info and the body for the message on sync notificationsTed Gould2014-10-141-1/+1
| | |