diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-12-15 18:04:27 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-12-16 18:37:59 +0000 |
commit | 391cb338295f07e052c2c61c7d372c16f1ea518d (patch) | |
tree | a1ecdcae017154e2e13391329abf2b71cecd6ad5 | |
parent | 02e095e26c5941eb0da09480d91e475479e99d4e (diff) |
background: Avoid empty screens
When switching from a colour to a picture.
-rw-r--r-- | panels/background/bg-pictures-source.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c index d44e6be8e..13700e608 100644 --- a/panels/background/bg-pictures-source.c +++ b/panels/background/bg-pictures-source.c @@ -254,6 +254,8 @@ file_info_async_ready (GObject *source, file = g_file_new_for_path (filename); g_free (filename); + if (item->options == G_DESKTOP_BACKGROUND_STYLE_NONE) + item->options = G_DESKTOP_BACKGROUND_STYLE_ZOOM; g_object_set_data (G_OBJECT (file), "item", item); g_file_read_async (file, 0, NULL, picture_opened_for_read, bg_source); g_object_unref (file); |