Only add the timeout for cleanup if we are in a root renderer; we don't
2002-02-17 Bradford Hovinen <hovinen@ximian.com> * applier.c (bg_applier_apply_prefs): Only add the timeout for cleanup if we are in a root renderer; we don't need it for preview
This commit is contained in:
parent
8d1236a2d2
commit
f81c1a2a30
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,8 @@
|
|||
(need_wallpaper_load_p): We need to reload the wallpaper pixbuf if
|
||||
it is enabled and not loaded
|
||||
(cleanup_cb): Free bg_applier->p->pixbuf too
|
||||
(bg_applier_apply_prefs): Only add the timeout for cleanup if we
|
||||
are in a root renderer; we don't need it for preview
|
||||
|
||||
2002-02-12 Lauris Kaplinski <lauris@ximian.com>
|
||||
|
||||
|
|
|
@ -396,8 +396,7 @@ bg_applier_apply_prefs (BGApplier *bg_applier,
|
|||
new_prefs->wallpaper_filename);
|
||||
new_prefs->wallpaper_enabled = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
else if (bg_applier->p->type == BG_APPLIER_ROOT) {
|
||||
if (bg_applier->p->timeout)
|
||||
g_source_remove (bg_applier->p->timeout);
|
||||
bg_applier->p->timeout = g_timeout_add (30000, (GSourceFunc) cleanup_cb, bg_applier);
|
||||
|
|
Loading…
Add table
Reference in a new issue