diff options
author | Christian Hergert <chergert@redhat.com> | 2019-06-06 15:27:54 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-06-06 15:30:42 -0700 |
commit | 828c36636cfe975ed2771b72d6fdffa8f0e691eb (patch) | |
tree | 1b1043ff39ecf524251d129368ba04f4376964e8 /gtk/gtkimcontext.c | |
parent | c168116e6405f2de8974d5180549982ee7ee31a3 (diff) | |
download | gtk+-828c36636cfe975ed2771b72d6fdffa8f0e691eb.tar.gz |
va_marshaller: add various va_marshallers
We don't need to cover every case with a va_marshaller, but there are a
number of them that are useful because they will often only be connected
to by a single signal handler.
Generally speaking, if I opened into a file to add a va_marshaller, I just
set all of them.
Diffstat (limited to 'gtk/gtkimcontext.c')
-rw-r--r-- | gtk/gtkimcontext.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c index 1cffd09d41..c01b5b98de 100644 --- a/gtk/gtkimcontext.c +++ b/gtk/gtkimcontext.c @@ -302,6 +302,9 @@ gtk_im_context_class_init (GtkIMContextClass *klass) _gtk_boolean_handled_accumulator, NULL, _gtk_marshal_BOOLEAN__VOID, G_TYPE_BOOLEAN, 0); + g_signal_set_va_marshaller (im_context_signals[RETRIEVE_SURROUNDING], + G_TYPE_FROM_CLASS (klass), + _gtk_marshal_BOOLEAN__VOIDv); /** * GtkIMContext::delete-surrounding: * @context: the object on which the signal is emitted @@ -324,7 +327,10 @@ gtk_im_context_class_init (GtkIMContextClass *klass) _gtk_marshal_BOOLEAN__INT_INT, G_TYPE_BOOLEAN, 2, G_TYPE_INT, - G_TYPE_INT); + G_TYPE_INT); + g_signal_set_va_marshaller (im_context_signals[DELETE_SURROUNDING], + G_TYPE_FROM_CLASS (klass), + _gtk_marshal_BOOLEAN__INT_INTv); properties[PROP_INPUT_PURPOSE] = g_param_spec_enum ("input-purpose", |