Commit 0640c999 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Fix for two applet instances that don't start at the same time

2008-04-23  Federico Mena Quintero  <federico@novell.com>

	* libslab-utils.c (create_thumbnail_factory): Continue the fix for
	the last bug; when a second instance of the applet gets added, it
	will want to initialize the thumbnail factory again.
Signed-off-by: 's avatarFederico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=451
parent 0c085d9f
2008-04-23 Federico Mena Quintero <federico@novell.com>
* libslab-utils.c (create_thumbnail_factory): Continue the fix for
the last bug; when a second instance of the applet gets added, it
will want to initialize the thumbnail factory again.
2008-04-23 Federico Mena Quintero <federico@novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=380339 - Crash when
......
......@@ -577,9 +577,14 @@ static GnomeThumbnailFactory *thumbnail_factory;
static void
create_thumbnail_factory (void)
{
/* The thumbnail_factory may already have been created by an applet
* instance that was launched before the current one.
*/
if (thumbnail_factory != NULL)
return;
libslab_checkpoint ("create_thumbnail_factory(): start");
g_assert (thumbnail_factory == NULL);
thumbnail_factory = gnome_thumbnail_factory_new (GNOME_THUMBNAIL_SIZE_NORMAL);
libslab_checkpoint ("create_thumbnail_factory(): end");
......@@ -596,7 +601,6 @@ init_thumbnail_factory_idle_cb (gpointer data)
void
libslab_thumbnail_factory_preinit (void)
{
if (thumbnail_factory_idle_id == 0)
thumbnail_factory_idle_id = g_idle_add (init_thumbnail_factory_idle_cb, NULL);
}
......
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