From b864a277d76c54a803e9259cd65abe1dfdc624d3 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 19 May 2010 14:45:29 +0200 Subject: set '0' as UserActionTime when HandleWith() is called '0' means 'no user action' which is the safer choice to prevent focus stealing. User should use a futur variant of HandleWith() allowing him to pass a UserActionTime when needed. --- src/mcd-dispatch-operation.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mcd-dispatch-operation.c b/src/mcd-dispatch-operation.c index 57054f60..60de4ab5 100644 --- a/src/mcd-dispatch-operation.c +++ b/src/mcd-dispatch-operation.c @@ -751,7 +751,6 @@ dispatch_operation_handle_with (TpSvcChannelDispatchOperation *cdo, { GError *error = NULL; McdDispatchOperation *self = MCD_DISPATCH_OPERATION (cdo); - GTimeVal now = { 0, 0 }; DEBUG ("%s/%p", self->priv->unique_name, self); @@ -762,8 +761,8 @@ dispatch_operation_handle_with (TpSvcChannelDispatchOperation *cdo, return; } - g_get_current_time (&now); - self->priv->handle_with_time = now.tv_sec; + /* 0 is a special case for 'no user action' */ + self->priv->handle_with_time = 0; g_queue_push_tail (self->priv->approvals, approval_new_handle_with (handler_name, context)); -- cgit v1.2.1