mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
gio: ensure default va_marshaller is used
If c_marshaller is provided during g_signal_new() registration, the automatic va_marshaller will not be set. If we leave the c_marshaller as NULL in the simple cases, both a c_marshaller and va_marshaller will be set for us. This is particularly helpful when dealing with stack traces from Linux perf, which often cannot unwind the stack beyond the ffi_call_unix64 stack-frame on x86_64. Related to GNOME/Initiatives#10
This commit is contained in:
@@ -361,7 +361,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, reply),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__ENUM,
|
||||
NULL,
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_MOUNT_OPERATION_RESULT);
|
||||
|
||||
@@ -382,7 +382,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GMountOperationClass, aborted),
|
||||
NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user