diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-05-19 14:45:29 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-05-19 15:35:49 +0200 |
commit | b864a277d76c54a803e9259cd65abe1dfdc624d3 (patch) | |
tree | d3eaf24d56d4aafabce123af7dda11441738966d | |
parent | 506f164532b3a2fc5b8b232b42414e7bc79c17b4 (diff) | |
download | telepathy-mission-control-b864a277d76c54a803e9259cd65abe1dfdc624d3.tar.gz |
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.
-rw-r--r-- | src/mcd-dispatch-operation.c | 5 |
1 files 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)); |