[gnome-control-center] background: Make ensure_bg() actually change filenames
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Make ensure_bg() actually change filenames
- Date: Tue, 14 Dec 2010 18:27:58 +0000 (UTC)
commit 855b7830d33f300c7ae125723b0530640147ab3b
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 14 17:44:35 2010 +0000
background: Make ensure_bg() actually change filenames
Otherwise you might call it as many times as you want, the
filename won't be changed for it, or its metadata (such as whether
it is a slideshow) updated.
panels/background/gnome-wp-item.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/panels/background/gnome-wp-item.c b/panels/background/gnome-wp-item.c
index 8829661..e2ad20b 100644
--- a/panels/background/gnome-wp-item.c
+++ b/panels/background/gnome-wp-item.c
@@ -108,13 +108,12 @@ static void set_bg_properties (GnomeWPItem *item)
void gnome_wp_item_ensure_gnome_bg (GnomeWPItem *item)
{
- if (!item->bg) {
+ if (!item->bg)
item->bg = gnome_bg_new ();
- g_object_set_data (G_OBJECT (item->bg), "gnome-wp-item", item);
+ g_object_set_data (G_OBJECT (item->bg), "gnome-wp-item", item);
- set_bg_properties (item);
- }
+ set_bg_properties (item);
}
void gnome_wp_item_update (GnomeWPItem *item) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]