Re: [evolution-patches] Fix for the bug #274409 [calendar]



On Wed, 2005-04-13 at 14:45 +0530, chenthill wrote:
> Resending the patch. Running the get_deltas in seperate thread instead
> of the main loop would be the right fix. Have attached the patch.
> 
also, another thing:

> +static gboolean
> +get_deltas_timeout (gpointer cbgw)
> +{
> +       GThread *thread;
> +       GError *error = NULL;
> +
> +       if (!cbgw)
> +               return FALSE;
> +
> +       thread = g_thread_create ((GThreadFunc) get_deltas, cbgw,
> FALSE, &error);
> +       if (!thread) {
> +               g_warning (G_STRLOC ": %s", error->message);
> +               g_error_free (error);
> +               
> +               return GNOME_Evolution_Calendar_OtherError;
> 
the function is a gboolean, so you should return just TRUE or FALSE.
-- 
Rodrigo Moya <rodrigo novell com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]