mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
applied patch from owen to implement GParamSpecUnichar.
Sat Mar 31 23:55:58 2001 Tim Janik <timj@gtk.org> * gtype.h: * gparamspecs.[hc]: applied patch from owen to implement GParamSpecUnichar. Fri Mar 30 07:34:02 2001 Tim Janik <timj@gtk.org> * gtype.c (type_iface_retrive_holder_info_Wm): * gtypeplugin.c (g_type_plugin_complete_interface_info): * gtypemodule.c (g_type_module_complete_interface_info): change order of instance_type and interface_type so they match the g_type_add_interface_*() API. * gsignal.c (g_signal_emit_valist): always assign C return value location, people depending on unaltered return values after emissions that had no handlers to run need to use g_signal_emitv(). * gtype.[hc] (g_type_query): new function to allow querying of class and object size (semantics like g_signal_query()). currently the implementation is better held conservative so as to only support types that are classed and static.
This commit is contained in:
@@ -1783,11 +1783,11 @@ g_signal_emit_valist (gpointer instance,
|
||||
gchar *error = NULL;
|
||||
|
||||
g_value_init (&return_value, node->return_type & ~G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
if (signal_emit_R (node, detail, instance, &return_value, instance_and_params))
|
||||
G_VALUE_LCOPY (&return_value,
|
||||
var_args,
|
||||
node->return_type & G_SIGNAL_TYPE_STATIC_SCOPE ? G_VALUE_NOCOPY_CONTENTS : 0,
|
||||
&error);
|
||||
signal_emit_R (node, detail, instance, &return_value, instance_and_params);
|
||||
G_VALUE_LCOPY (&return_value,
|
||||
var_args,
|
||||
node->return_type & G_SIGNAL_TYPE_STATIC_SCOPE ? G_VALUE_NOCOPY_CONTENTS : 0,
|
||||
&error);
|
||||
if (!error)
|
||||
g_value_unset (&return_value);
|
||||
else
|
||||
|
Reference in New Issue
Block a user