app/core/gimp-utils.[ch] app/core/gimp.c app/widgets/gimpcontrollerinfo.c

2007-02-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-utils.[ch]
	* app/core/gimp.c
	* app/widgets/gimpcontrollerinfo.c
	* libgimpwidgets/gimpcontroller.c: removed various boolean_handled
	signal accumulators and use g_signal_accumulator_true_handled().


svn path=/trunk/; revision=21933
This commit is contained in:
Michael Natterer
2007-02-17 11:45:59 +00:00
committed by Michael Natterer
parent d737e1cdf0
commit d212161c00
6 changed files with 11 additions and 41 deletions

View File

@ -68,22 +68,6 @@ G_DEFINE_TYPE_WITH_CODE (GimpController, gimp_controller, G_TYPE_OBJECT,
static guint controller_signals[LAST_SIGNAL] = { 0 };
static gboolean
gimp_controller_boolean_handled_accumulator (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;
}
static void
gimp_controller_class_init (GimpControllerClass *klass)
{
@ -119,7 +103,7 @@ gimp_controller_class_init (GimpControllerClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GimpControllerClass, event),
gimp_controller_boolean_handled_accumulator, NULL,
g_signal_accumulator_true_handled, NULL,
_gimp_widgets_marshal_BOOLEAN__POINTER,
G_TYPE_BOOLEAN, 1,
G_TYPE_POINTER);