destruction cleanup. there's one ->finalize_hook member in the hooklist

Thu Mar  8 16:23:34 2001  Tim Janik  <timj@gtk.org>

        * ghook.[hc]: destruction cleanup. there's one
        ->finalize_hook member in the hooklist now that gets
        called when a hook should be destroyed, that's it.
        that function is guarranteed to be called only when
        all ref_counts to the hook vanished, thus also when
        the hook is not in call.

Thu Mar  8 16:35:48 2001  Tim Janik  <timj@gtk.org>

        * gparamspecs.[hc]: s/g_param_spec_string_c/g_param_spec_stringc/.

        * gsignal.[hc]: fixed accumulator invocation, implemented emission
        hooks. and no, neither of these callbacks are called via a closure,
        language bindings can wrap the accumulator and emission hook
        interface, they already get parameters marshalled into a GValue array.
        (g_signal_connect): removed this function as its C specific, doesn't
        cover the swapped argument, is too close to its broken original
        gtk_signal_connect() and creates demand for _swapped, _after and
        _swapped_after variants <brrr>.
        (g_signal_connectc): convenience macro to connect a C handler
        func with data, like the old g_signal_connect() plus swapped
        argument.

        * gtype.h:
        * gboxed.c: added G_TYPE_VALUE boxed type.
This commit is contained in:
Tim Janik
2001-03-08 16:34:59 +00:00
committed by Tim Janik
parent c811ed93d3
commit 617332234d
27 changed files with 529 additions and 290 deletions

View File

@@ -17,6 +17,20 @@
@s2:
@Returns:
<!-- ##### USER_FUNCTION GHookFreeFunc ##### -->
<para>
</para>
@hook_list:
@hook:
<!-- ##### MACRO G_HOOK_DEFERRED_DESTROY ##### -->
<para>
</para>
<!-- ##### MACRO access ##### -->
<para>

View File

@@ -68,8 +68,7 @@ and the list of hook functions can be invoked.
@is_setup:
@hooks:
@hook_memchunk:
@hook_free:
@hook_destroy:
@finalize_hook:
<!-- ##### STRUCT GHook ##### -->
<para>
@@ -153,6 +152,8 @@ and the list of hook functions can be invoked.
</para>
@hook:
@marshal_data:
<!-- # Unused Parameters # -->
@data:
@@ -162,24 +163,10 @@ and the list of hook functions can be invoked.
</para>
@hook:
@data:
@marshal_data:
@Returns:
<!-- ##### USER_FUNCTION GHookFreeFunc ##### -->
<para>
</para>
@hook_list:
@hook:
<!-- ##### MACRO G_HOOK_DEFERRED_DESTROY ##### -->
<para>
</para>
<!-- # Unused Parameters # -->
@data:
<!-- ##### FUNCTION g_hook_list_init ##### -->
@@ -222,6 +209,8 @@ thread) can be called. If set to FALSE, these are skipped.
@hook_list: a #GHookList.
@may_recurse:
@marshaller:
@marshal_data:
<!-- # Unused Parameters # -->
@data:
@@ -233,6 +222,8 @@ thread) can be called. If set to FALSE, these are skipped.
@hook_list: a #GHookList.
@may_recurse:
@marshaller:
@marshal_data:
<!-- # Unused Parameters # -->
@data:

View File

@@ -66,6 +66,7 @@ only one statement is expected by the compiler.
Portable way to copy <type>va_list</type> variables.
</para>
<!-- # Unused Parameters # -->
@ap1: the <type>va_list</type> variable to place a copy of @ap2 in.
@ap2: a <type>va_list</type>.