Mailinglist Archive: opensuse-bugs (14006 mails)
| < Previous | Next > |
[Bug 380339] multiple slabs ...
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Tue, 22 Apr 2008 10:23:56 -0600 (MDT)
- Message-id: <20080422162356.A6D77CC6CC@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=380339
User federico@xxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=380339#c4
--- Comment #4 from Federico Mena Quintero <federico@xxxxxxxxxx> 2008-04-22
10:23:56 MST ---
The problem is that src/main-menu.c:main_menu_applet_init(), which is the
applet's factory function, calls libslab_thumbnail_factory_preinit(). This
then gets called a second time for the second slab.
The right solution is to do something like
libslab_thumbnail_factory_preinit ()
{
if (thumbnail_factory_idle_id != 0)
thumbnail_factory_idle_id = g_idle_add (init_thumbnail_factory_idle_cb,
NULL);
}
instead of unconditionally setting up the idle handler.
(The assertion you ran into means "I don't want to create the thumbnail factory
twice, to avoid leaking --- it's really doing what it intends to do :)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
User federico@xxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=380339#c4
--- Comment #4 from Federico Mena Quintero <federico@xxxxxxxxxx> 2008-04-22
10:23:56 MST ---
The problem is that src/main-menu.c:main_menu_applet_init(), which is the
applet's factory function, calls libslab_thumbnail_factory_preinit(). This
then gets called a second time for the second slab.
The right solution is to do something like
libslab_thumbnail_factory_preinit ()
{
if (thumbnail_factory_idle_id != 0)
thumbnail_factory_idle_id = g_idle_add (init_thumbnail_factory_idle_cb,
NULL);
}
instead of unconditionally setting up the idle handler.
(The assertion you ran into means "I don't want to create the thumbnail factory
twice, to avoid leaking --- it's really doing what it intends to do :)
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |