From cabe39862b23eddc37ad2c40a4782312a5f11729 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 29 May 2019 16:31:14 +0200 Subject: [PATCH] widget: Add marshallers to signals Yay for better sysprof logs! --- gtk/gtkwidget.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 0442c7b508..ba90492382 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -1373,7 +1373,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_CLEANUP | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS, G_STRUCT_OFFSET (GtkWidgetClass, destroy), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1389,7 +1389,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkWidgetClass, show), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1405,7 +1405,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkWidgetClass, hide), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1427,7 +1427,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkWidgetClass, map), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1447,7 +1447,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkWidgetClass, unmap), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1464,7 +1464,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkWidgetClass, realize), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1482,7 +1482,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkWidgetClass, unrealize), NULL, NULL, - NULL, + g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); /** @@ -1498,11 +1498,14 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkWidgetClass, size_allocate), NULL, NULL, - NULL, + _gtk_marshal_VOID__INT_INT_INT, G_TYPE_NONE, 3, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT); + g_signal_set_va_marshaller (widget_signals[SIZE_ALLOCATE], + G_TYPE_FROM_CLASS (gobject_class), + _gtk_marshal_VOID__INT_INT_INTv); /** * GtkWidget::state-flags-changed: