Commit f16900c9 authored by Paolo Borelli's avatar Paolo Borelli

Small cleanup

parent ef352558
......@@ -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();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment