[gnome-control-center] background: Avoid empty screens
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Avoid empty screens
- Date: Thu, 16 Dec 2010 18:38:16 +0000 (UTC)
commit 391cb338295f07e052c2c61c7d372c16f1ea518d
Author: Bastien Nocera <hadess hadess net>
Date: Wed Dec 15 18:04:27 2010 +0000
background: Avoid empty screens
When switching from a colour to a picture.
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 d44e6be..13700e6 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]