[gnome-desktop] gnome-bg: Fix background cache
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] gnome-bg: Fix background cache
- Date: Tue, 8 Feb 2011 10:28:18 +0000 (UTC)
commit 43e13d709d8d35b3484e8b2aaf126f1d91fae7ad
Author: Vincent Untz <vuntz gnome org>
Date: Tue Feb 8 11:27:35 2011 +0100
gnome-bg: Fix background cache
We were caching thumbnails instead of caching the real background :-)
libgnome-desktop/gnome-bg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index f372a78..d6829ad 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -631,7 +631,7 @@ refresh_cache_file (GnomeBG *bg,
GdkPixbufFormat *format;
gchar *format_name;
- if ((num_monitor != -1) && (width > 300) && (height > 300))
+ if ((num_monitor == -1) || (width <= 300) || (height <= 300))
return;
cache_filename = get_wallpaper_cache_filename (bg->filename, num_monitor, bg->placement, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]