aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-08-22 12:40:41 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-08-22 12:40:41 +0200
commitdb7f4094b3e58c3ced1067a480cac6f9037abc3c (patch)
tree4daa364fbe848dbc9e32ad0fc714afb2c64b9b6b
parentbe4ea183bbb293915f243ecdeffdbec633c95b91 (diff)
downloadarctica-greeter-db7f4094b3e58c3ced1067a480cac6f9037abc3c.tar.gz
arctica-greeter-db7f4094b3e58c3ced1067a480cac6f9037abc3c.tar.bz2
arctica-greeter-db7f4094b3e58c3ced1067a480cac6f9037abc3c.zip
src/background.vala: Fix FTBFS against Vala 0.42. This introduces a slight behaviour change compared to the previous version, but actually in a direction we want it to be.
-rw-r--r--src/background.vala11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/background.vala b/src/background.vala
index a70df81..69aac43 100644
--- a/src/background.vala
+++ b/src/background.vala
@@ -445,7 +445,14 @@ public class Background : Gtk.Fixed
private string _current_background;
public string? current_background {
- get { return _current_background; }
+ get {
+ if (_current_background)
+ {
+ return _current_background;
+ } else {
+ return fallback_bgcolor;
+ }
+ }
set {
if (value == null || value == "")
@@ -458,8 +465,6 @@ public class Background : Gtk.Fixed
reload ();
}
-
- default = fallback_bgcolor;
}
public bool draw_grid { get; set; default = true; }