From e1a03ead7a541a2118816b1632e957cc2bb44c8f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 29 Aug 2016 16:00:17 +0200 Subject: Use NULL for generic marshallers in g_signal_new() glib will use the correct marshaller automatically. And as a side effect, we also get all glib optimizations, like a va marshaller. --- gtk/gtkimcontext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/gtkimcontext.c') diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c index 64f0f69d6e..5ca199f1d1 100644 --- a/gtk/gtkimcontext.c +++ b/gtk/gtkimcontext.c @@ -231,7 +231,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkIMContextClass, preedit_start), NULL, NULL, - _gtk_marshal_VOID__VOID, + NULL, G_TYPE_NONE, 0); /** * GtkIMContext::preedit-end: @@ -246,7 +246,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkIMContextClass, preedit_end), NULL, NULL, - _gtk_marshal_VOID__VOID, + NULL, G_TYPE_NONE, 0); /** * GtkIMContext::preedit-changed: @@ -263,7 +263,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkIMContextClass, preedit_changed), NULL, NULL, - _gtk_marshal_VOID__VOID, + NULL, G_TYPE_NONE, 0); /** * GtkIMContext::commit: @@ -280,7 +280,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkIMContextClass, commit), NULL, NULL, - _gtk_marshal_VOID__STRING, + NULL, G_TYPE_NONE, 1, G_TYPE_STRING); /** -- cgit v1.2.1