g_hook_list_invoke_check issue



Hello,
The API reference of glib suggests that g_hook_list_invoke_check will delete all the hooks for which the function returns true. But the implementation suggests the other way round. I am using Glib 2.8.4. Here is the part of the function.

    func = (GHookCheckFunc) hook->func;
      was_in_call = G_HOOK_IN_CALL (hook);
      hook->flags |= G_HOOK_FLAG_IN_CALL;
      need_destroy = !func (hook->data);
      if (!was_in_call)
    hook->flags &= ~G_HOOK_FLAG_IN_CALL;
      if (need_destroy)
    g_hook_destroy_link (hook_list, hook);

Can someone please help me with this.

Regards,
Sumit Kumar Jain



Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

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