[gnome-clocks] Small cleanup
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Small cleanup
- Date: Sat, 3 Mar 2018 14:38:28 +0000 (UTC)
commit f16900c916c97546234a9ba6ca2a9624f2431519
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Feb 10 16:23:02 2018 +0100
Small cleanup
src/utils.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/utils.vala b/src/utils.vala
index bfba72e..d8db419 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -299,21 +299,19 @@ public class Weekdays {
}
public class Bell : Object {
- private GLib.Settings settings;
private GSound.Context? gsound;
private GLib.Cancellable cancellable;
private string soundtheme;
private string sound;
public Bell (string soundid) {
- settings = new GLib.Settings("org.gnome.desktop.sound");
-
try {
gsound = new GSound.Context();
} catch (GLib.Error e) {
warning ("Sound could not be initialized, error: %s", e.message);
}
+ var settings = new GLib.Settings("org.gnome.desktop.sound");
soundtheme = settings.get_string ("theme-name");
sound = soundid;
cancellable = new GLib.Cancellable();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]