aboutsummaryrefslogtreecommitdiff
path: root/src/background.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/background.vala')
-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; }