g_object_get (settings, "gtk-timeout-repeat", &timeout, NULL);
timeout *= 8;
- GDK_THREADS_ENTER ();
-
if (private_data->timer)
{
arrow_action (calendar, private_data->click_child);
if (private_data->need_timer)
{
private_data->need_timer = FALSE;
- private_data->timer = g_timeout_add (/*CALENDAR_TIMER_DELAY*/timeout,
+ private_data->timer = gdk_threads_add_timeout (/*CALENDAR_TIMER_DELAY*/timeout,
(GSourceFunc) calendar_timer,
(gpointer) calendar);
}
retval = TRUE;
}
- GDK_THREADS_LEAVE ();
-
return retval;
}
if (!private_data->timer)
{
private_data->need_timer = TRUE;
- private_data->timer = g_timeout_add (/*CALENDAR_INITIAL_TIMER_DELAY*/timeout,
+ private_data->timer = gdk_threads_add_timeout (/*CALENDAR_INITIAL_TIMER_DELAY*/timeout,
calendar_timer,
(gpointer) widget);
}