aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-31 15:04:28 -0600
committercharles kerr <charlesk@canonical.com>2015-12-31 15:04:28 -0600
commitcdec72148f56ca1d897e91e23c7f8eec7b0ba148 (patch)
treeccb11bf8c13370cabd52f5dc90165880df922dbd /src/service.vala
parentf94de8d944e0f10ca6f37d17fb4b0e5ab33a9b60 (diff)
downloadayatana-indicator-sound-cdec72148f56ca1d897e91e23c7f8eec7b0ba148.tar.gz
ayatana-indicator-sound-cdec72148f56ca1d897e91e23c7f8eec7b0ba148.tar.bz2
ayatana-indicator-sound-cdec72148f56ca1d897e91e23c7f8eec7b0ba148.zip
use the 'unowned' keyword when picking from lists of hardcoded strings
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service.vala b/src/service.vala
index 5009099..c81c62b 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -252,7 +252,7 @@ public class IndicatorSound.Service: Object {
void update_root_icon () {
double volume = this.volume_control.volume.volume;
- string icon = get_volume_root_icon (volume, this.volume_control.mute, volume_control.active_output());
+ unowned string icon = get_volume_root_icon (volume, this.volume_control.mute, volume_control.active_output());
string accessible_name;
if (this.volume_control.mute) {
@@ -276,9 +276,9 @@ public class IndicatorSound.Service: Object {
private bool block_info_notifications = false;
- private static string get_volume_root_icon_by_volume (double volume, VolumeControl.ActiveOutput active_output)
+ private static unowned string get_volume_root_icon_by_volume (double volume, VolumeControl.ActiveOutput active_output)
{
- string icon = "";
+ unowned string icon = "";
switch (active_output)
{
case VolumeControl.ActiveOutput.SPEAKERS:
@@ -365,8 +365,8 @@ public class IndicatorSound.Service: Object {
return icon;
}
- private string get_volume_root_icon (double volume, bool mute, VolumeControl.ActiveOutput active_output) {
- string icon = "";
+ private unowned string get_volume_root_icon (double volume, bool mute, VolumeControl.ActiveOutput active_output) {
+ unowned string icon = "";
switch (active_output)
{
case VolumeControl.ActiveOutput.SPEAKERS: