added gimp_boolean_handled_accum().
2004-06-17 Michael Natterer <mitch@gimp.org> * app/core/gimp-utils.[ch]: added gimp_boolean_handled_accum(). * app/core/gimp.c * app/widgets/gimpcontrollerinfo.c: use it.
This commit is contained in:

committed by
Michael Natterer

parent
75e6fc560b
commit
2a69c419f1
@ -154,3 +154,19 @@ gimp_get_default_language (const gchar *category)
|
||||
|
||||
return lang;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gimp_boolean_handled_accum (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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user