diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-21 17:47:18 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-21 19:40:03 +0200 |
commit | bf0db8aa881fbcd85068ec55722cb8d726fe9a13 (patch) | |
tree | a445a6cbb0ded6e1102934690adbb2dae795b662 /src/background.vala | |
parent | ec5e539809ec8d2bcdfbdfb70d080fc5edd217ea (diff) | |
download | arctica-greeter-bf0db8aa881fbcd85068ec55722cb8d726fe9a13.tar.gz arctica-greeter-bf0db8aa881fbcd85068ec55722cb8d726fe9a13.tar.bz2 arctica-greeter-bf0db8aa881fbcd85068ec55722cb8d726fe9a13.zip |
Rebase against Unity Greeter from Ubuntu 15.04
Diffstat (limited to 'src/background.vala')
-rw-r--r-- | src/background.vala | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/background.vala b/src/background.vala index a1c28e9..2d60074 100644 --- a/src/background.vala +++ b/src/background.vala @@ -691,15 +691,18 @@ public class Background : Gtk.Fixed void publish_average_color () { notify_property ("average-color"); - var rgba = current.average_color.to_string (); - var root = get_screen ().get_root_window (); - - Gdk.property_change (root, - Gdk.Atom.intern_static_string ("_GNOME_BACKGROUND_REPRESENTATIVE_COLORS"), - Gdk.Atom.intern_static_string ("STRING"), - 8, - Gdk.PropMode.REPLACE, - rgba.data, - rgba.data.length); + + if (!ArcticaGreeter.singleton.test_mode) + { + var rgba = current.average_color.to_string (); + var root = get_screen ().get_root_window (); + Gdk.property_change (root, + Gdk.Atom.intern_static_string ("_GNOME_BACKGROUND_REPRESENTATIVE_COLORS"), + Gdk.Atom.intern_static_string ("STRING"), + 8, + Gdk.PropMode.REPLACE, + rgba.data, + rgba.data.length); + } } } |