mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 13:23:31 +02:00
Add g_signal_accumulator_true_handled(), to do TRUE-stops-emit signals.
Fri Sep 12 16:31:40 2003 Owen Taylor <otaylor@redhat.com> * gsignal.[ch]: Add g_signal_accumulator_true_handled(), to do TRUE-stops-emit signals. * Makefile.am: Move testoverride.c and testifaceinit.c to tests/gobject.
This commit is contained in:
@@ -2586,6 +2586,22 @@ type_debug_name (GType type)
|
||||
return "<invalid>";
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_signal_accumulator_true_handled (GSignalInvocationHint *ihint,
|
||||
GValue *return_accu,
|
||||
const GValue *handler_return,
|
||||
gpointer dummy)
|
||||
{
|
||||
gboolean continue_emission;
|
||||
gboolean signal_handled;
|
||||
|
||||
signal_handled = g_value_get_boolean (handler_return);
|
||||
g_value_set_boolean (return_accu, signal_handled);
|
||||
continue_emission = !signal_handled;
|
||||
|
||||
return continue_emission;
|
||||
}
|
||||
|
||||
/* --- compile standard marshallers --- */
|
||||
#include "gobject.h"
|
||||
#include "genums.h"
|
||||
|
Reference in New Issue
Block a user