aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/info-notification.vala22
-rw-r--r--src/service.vala10
2 files changed, 16 insertions, 16 deletions
diff --git a/src/info-notification.vala b/src/info-notification.vala
index 9088cb8..861cbee 100644
--- a/src/info-notification.vala
+++ b/src/info-notification.vala
@@ -32,10 +32,10 @@ public class IndicatorSound.InfoNotification: Notification
return;
/* Determine Label */
- string volume_label = get_notification_label (active_output);
+ unowned string volume_label = get_notification_label (active_output);
/* Choose an icon */
- string icon = get_volume_notification_icon (active_output, volume, is_high_volume);
+ unowned string icon = get_volume_notification_icon (active_output, volume, is_high_volume);
/* Reset the notification */
var n = _notification;
@@ -48,8 +48,8 @@ public class IndicatorSound.InfoNotification: Notification
show_notification ();
}
- private static string get_notification_label (VolumeControl.ActiveOutput active_output) {
- string volume_label = "";
+ private static unowned string get_notification_label (VolumeControl.ActiveOutput active_output) {
+ unowned string volume_label = "";
switch (active_output) {
case VolumeControl.ActiveOutput.SPEAKERS:
@@ -81,10 +81,10 @@ public class IndicatorSound.InfoNotification: Notification
return volume_label;
}
- private static string get_volume_notification_icon (VolumeControl.ActiveOutput active_output,
- double volume,
- bool is_high_volume) {
- string icon = "";
+ private static unowned string get_volume_notification_icon (VolumeControl.ActiveOutput active_output,
+ double volume,
+ bool is_high_volume) {
+ unowned string icon = "";
if (is_high_volume) {
switch (active_output) {
@@ -106,10 +106,10 @@ public class IndicatorSound.InfoNotification: Notification
return icon;
}
- private static string get_volume_icon (VolumeControl.ActiveOutput active_output,
- double volume)
+ private static unowned string get_volume_icon (VolumeControl.ActiveOutput active_output,
+ double volume)
{
- string icon = "";
+ unowned string icon = "";
switch (active_output) {
case VolumeControl.ActiveOutput.SPEAKERS:
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: