Commit 7ae50855 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Make DocumentTile use the global thumbnail factory

Signed-off-by: 's avatarFederico Mena Quintero <>

svn path=/trunk/; revision=438
parent 1ed3d92b
......@@ -94,8 +94,6 @@ typedef struct
gulong notify_signal_id;
} DocumentTilePrivate;
static GnomeThumbnailFactory *thumbnail_factory = NULL;
static void document_tile_class_init (DocumentTileClass *this_class)
......@@ -419,6 +417,7 @@ load_image (DocumentTile *tile)
gchar *icon_id = NULL;
gboolean free_icon_id = TRUE;
GnomeThumbnailFactory *thumbnail_factory;
libslab_checkpoint ("document-tile.c: load_image(): start for %s", TILE (tile)->uri);
......@@ -429,8 +428,7 @@ load_image (DocumentTile *tile)
goto exit;
if (! thumbnail_factory)
thumbnail_factory = gnome_thumbnail_factory_new (GNOME_THUMBNAIL_SIZE_NORMAL);
thumbnail_factory = libslab_thumbnail_factory_get ();
thumb_path = gnome_thumbnail_factory_lookup (thumbnail_factory, TILE (tile)->uri, priv->modified);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment