[gnome-desktop] Preload /gnome/desktop/thumbnails in thumbnail factory
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-desktop] Preload /gnome/desktop/thumbnails in thumbnail factory
- Date: Fri, 17 Apr 2009 09:57:14 -0400 (EDT)
commit c8d9daebab0fa2490e6f0456184c3e558037513b
Author: Alexander Larsson <alexl redhat com>
Date: Fri Apr 17 15:51:16 2009 +0200
Preload /gnome/desktop/thumbnails in thumbnail factory
We will read everything in this directory anyway, so this is a
performance increase. This also fixes things so that
/gnome/desktop/thumbnail is add_dir:ed instead of /gnome/desktop which
is unnecessarily wide.
---
libgnome-desktop/ChangeLog | 8 ++++++++
libgnome-desktop/gnome-desktop-thumbnail.c | 8 ++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/libgnome-desktop/ChangeLog b/libgnome-desktop/ChangeLog
index 9cb25f5..6d325d1 100644
--- a/libgnome-desktop/ChangeLog
+++ b/libgnome-desktop/ChangeLog
@@ -1,5 +1,13 @@
2009-04-16 Alexander Larsson <alexl redhat com>
+ * gnome-desktop-thumbnail.c:
+ (gnome_desktop_thumbnail_factory_init):
+ Add /gnome/desktop/thumbnails, not /gnome/desktop
+ preload recursive and make sure we read the dir
+ after that.
+
+2009-04-16 Alexander Larsson <alexl redhat com>
+
Bug 141557 â?? Svg backgrounds not scaled correctly
* gnome-bg.c:
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index f5a509a..e02e7ee 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -440,13 +440,13 @@ gnome_desktop_thumbnail_factory_init (GnomeDesktopThumbnailFactory *factory)
priv->lock = g_mutex_new ();
- gnome_desktop_thumbnail_factory_reread_scripts (factory);
-
client = gconf_client_get_default ();
gconf_client_add_dir (client,
- "/desktop/gnome",
- GCONF_CLIENT_PRELOAD_NONE, NULL);
+ "/desktop/gnome/thumbnailers",
+ GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
+ gnome_desktop_thumbnail_factory_reread_scripts (factory);
+
priv->thumbnailers_notify = gconf_client_notify_add (client, "/desktop/gnome/thumbnailers",
schedule_reread, factory, NULL,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]