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.
This commit is contained in:
parent
adfe6ef8fc
commit
855b7830d3
1 changed files with 3 additions and 4 deletions
|
@ -108,13 +108,12 @@ static void set_bg_properties (GnomeWPItem *item)
|
||||||
|
|
||||||
void gnome_wp_item_ensure_gnome_bg (GnomeWPItem *item)
|
void gnome_wp_item_ensure_gnome_bg (GnomeWPItem *item)
|
||||||
{
|
{
|
||||||
if (!item->bg) {
|
if (!item->bg)
|
||||||
item->bg = gnome_bg_new ();
|
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) {
|
void gnome_wp_item_update (GnomeWPItem *item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue