aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Stop using g_icon_serialize() directlyLars Uebernickel2013-10-282-7/+4
| | | | | Vala 0.20 now comes with a gio-2.0.vapi that has Icon.serialize().
* Test that MediaPlayer's icon property isn't NULL before we serialize it. ↵Charles Kerr2013-10-281-1/+7
|\ | | | | | | | | | | Fixes: https://bugs.launchpad.net/bugs/1229612. Approved by PS Jenkins bot, Lars Uebernickel.
| * add the null safeguard back for the pathological case of ↵Charles Kerr2013-10-281-1/+2
| | | | | | | | 'application-default-icon' also failing
| * use 'application-default-icon' as the fallback media player iconCharles Kerr2013-10-281-2/+6
| |
| * test that player.icon isn't null before we serialize it.Charles Kerr2013-10-251-1/+2
| |
* | VolumeControl: don't pass vala closures into libpulseLars Uebernickel2013-10-281-15/+29
|\ \ | |/ |/| | | | | | | | | | | | | | | Libpulse's vala bindings don't specify that callbacks passed into some of its functions (e.g., get_server_info) can be called after the function returns. Vala thus frees closure data after these functions return. This can't easily be fixed in the bindings, because libpulse doesn't provide variants of these functions with destroy_notifies. This patch works around this problem by only passing non-closure functions into libpulse. Fixes: https://bugs.launchpad.net/bugs/1244386. Approved by Charles Kerr, PS Jenkins bot.
| * VolumeControl: don't pass vala closures into libpulseLars Uebernickel2013-10-261-15/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | Libpulse's vala bindings don't specify that callbacks passed into some of its functions (e.g., get_server_info) can be called after the function returns. Vala thus frees closure data after these functions return. This can't easily be fixed in the bindings, because libpulse doesn't provide variants of these functions with destroy_notifies. This patch works around this problem by only passing non-closure functions into libpulse.
* | fix similar variant leaksCharles Kerr2013-10-241-6/+6
| |
* | in Service's volume_changed(), explicitly instantiate the GVariant to avoid ↵Charles Kerr2013-10-241-1/+1
| | | | | | | | leaking it
* | Don't special case Unity sessions, that's not needed sinceSebastien Bacher2013-10-241-3/+1
| | | | | | | | | | | | gnome-control-center is doing the right thing, the session name used was also wrong and couldn't work (lp: #1239545)
* | Only display running players in the phone's sound menuLars Uebernickel2013-10-242-28/+62
|\ \ | | | | | | | | | | | | | | | The design says to only display the _one_ running player. This will have that effect, as there's only one player allowed to run at a time on the phone. Approved by PS Jenkins bot, Ted Gould.
| * | Only display running players in the phone's sound menuLars Uebernickel2013-10-102-25/+54
| | |
| * | Replace 'mute' boolean by a flag in the SoundMenu constructorLars Uebernickel2013-10-102-5/+10
| | | | | | | | | | | | | | | | | | This makes the code calling the constructor more readable and allows for extensibility.
* | | when we fail to connect to pulse, wait a moment before retrying.Charles Kerr2013-10-231-1/+18
| |/ |/|
* | Give the volume menu item a target, because the 'volume' action now has a ↵Lars Uebernickel2013-10-101-1/+1
| | | | | | | | parameter
* | Allow activating the 'volume' actionLars Uebernickel2013-10-091-2/+9
|/ | | | | It does the same as the 'scroll' action except showing a notification.
* Make sure to set the initial value of settings shownTed Gould2013-10-021-1/+1
|
* Making the settings action optionalTed Gould2013-10-022-3/+13
|
* Show synchronous notification when changing the volume by scrolling over the ↵Lars Uebernickel2013-10-013-0/+33
| | | | indicator
* service: use vala's double.clamp()Lars Uebernickel2013-10-011-6/+1
|
* Reconnect when pulseaudio terminates (or crashes)Lars Uebernickel2013-09-301-25/+40
|
* Update settings URL to settings:///systemTed Gould2013-09-261-1/+1
|
* Use url-dispatcher instead of invoking system-settings directly.Charles Kerr2013-09-252-5/+2
|
* sound-menu.vala: make the logic for showing the mic volume more explicitLars Uebernickel2013-09-151-4/+7
| | | | | | | Before, this was done by counting the items that are currently in the volume section. This broke with the last commit, because with that, the section might not contain a mute menu item.
* Don't show the "Mute" menu item in the phone profileLars Uebernickel2013-09-152-4/+5
|
* Add "title" to the root action state dictionaryLars Uebernickel2013-09-121-0/+1
|
* Remove volume percentage from translatable part of the accessible titleLars Uebernickel2013-09-111-1/+1
|
* Mark remaining user-visible strings as translatableLars Uebernickel2013-09-112-3/+3
|
* Toggle mute on secondary actionLars Uebernickel2013-09-091-0/+1
| | | | | | This depends on the panel supporting x-canonical-secondary-action on the root menu item.
* Change volume when scrolling on the indicatorLars Uebernickel2013-09-092-0/+15
| | | | | | | | This depends on a new root menu property: x-canonical-scroll-action. It points to an action that gets activated whenever the user scrolls the mouse over the indicator. The parameter of that action signifies the magnitude and direction of the scroll.
* Merge trunkLars Uebernickel2013-08-264-18/+153
|\
| * don't use deprecated GSimpleActionGroup APIsCharles Kerr2013-08-221-14/+14
| |
| * Clean up the build / installationPete Woods2013-08-161-1/+1
| |
| * Build using cmakePete Woods2013-08-164-40/+131
| |
| * add accessible-name property to the ng sound indicatorCharles Kerr2013-08-081-2/+14
| |
* | bus-watch-namespace: remove stray semicolonLars Uebernickel2013-08-261-1/+1
| |
* | bus-watch-namespace: free name_spaceLars Uebernickel2013-08-261-0/+2
| |
* | Use bus_watch_namespace() to monitor mpris playersLars Uebernickel2013-08-025-211/+398
|/ | | | | | | | | This function is more robust than the current code and uses glib's G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE instead of creating match rules itself. bus-watch-namespace.[ch] is shared with gnome-settings-daemon.
* Fixed max-icon icon sourceNick Dedekind2013-07-301-2/+2
|
* Export phone menuLars Uebernickel2013-07-252-6/+19
| | | | | | For now, this does the same as the one on the desktop, except for starting the the phone's settings ui.
* service.vala: store menus in a hash table, keyed by profile nameLars Uebernickel2013-07-252-8/+14
|
* service.vala: move menu handling into sound-menu.valaLars Uebernickel2013-07-253-126/+168
| | | | | | This makes service.vala a lot more readable and makes way for exporting a second - slightly different - menu for the phone profile.
* Specify fallback iconsLars Uebernickel2013-07-191-6/+13
| | | | | The *-panel suffix is only used by the ubuntu-mono icon themes.
* Use interested-media-players instead of preferred-media-players gsettings keyLars Uebernickel2013-07-111-4/+4
|
* Expose playlists in the menu if the player exports themLars Uebernickel2013-07-102-3/+110
|
* Don't set player state to "Launching" when the player is already runningLars Uebernickel2013-07-061-1/+3
|
* Launch player when the play action is activatedLars Uebernickel2013-07-061-1/+14
|
* Set locale and bind text domainLars Uebernickel2013-07-041-0/+7
|
* Put service into $pkglibexecdirLars Uebernickel2013-07-041-1/+1
|
* media-player-list, mpris2-watcher: remove unneded `public` from methodsLars Uebernickel2013-06-282-4/+4
|