[gnome-control-center] background: Fix semi-random placement style when selecting "Picture"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Fix semi-random placement style when selecting "Picture"
- Date: Fri, 18 Jul 2014 16:29:43 +0000 (UTC)
commit c33e98d1c735c875717b1b2a6b6ea0ba32919b76
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 18 11:56:17 2014 +0200
background: Fix semi-random placement style when selecting "Picture"
When selecting a background from the Pictures source, make sure that
the placement is reset from whatever it was set to before, otherwise
it will make use of the previous one, leading to tiled wallpapers if a
colour was selected before, for example.
https://bugzilla.gnome.org/show_bug.cgi?id=703057
panels/background/bg-pictures-source.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
index e3d89f5..c165fa3 100644
--- a/panels/background/bg-pictures-source.c
+++ b/panels/background/bg-pictures-source.c
@@ -444,7 +444,7 @@ add_single_file (BgPicturesSource *bg_source,
}
item = cc_background_item_new (uri);
- flags |= CC_BACKGROUND_ITEM_HAS_SHADING;
+ flags |= CC_BACKGROUND_ITEM_HAS_SHADING | CC_BACKGROUND_ITEM_HAS_PLACEMENT;
g_object_set (G_OBJECT (item),
"flags", flags,
"shading", G_DESKTOP_BACKGROUND_SHADING_SOLID,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]