diff options
author | Christian Hergert <chergert@redhat.com> | 2019-05-29 13:05:19 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-05-29 13:22:31 -0700 |
commit | f507a79056b44cfce5cb1d27f37ac71c682bd22f (patch) | |
tree | 8728d57fe23c68d41559ed0021dfd4a3f12233fe /gtk/gtkscalebutton.c | |
parent | 90f330e27a7576c9a2d24398e71bf3097f591f08 (diff) | |
download | gtk+-f507a79056b44cfce5cb1d27f37ac71c682bd22f.tar.gz |
marshallers: ensure g_cclosure_marshal_VOID__VOIDv is used
If we set c_marshaller manually, then g_signal_newv() will not setup a
va_marshaller for us. However, if we provide c_marshaller as NULL, it will
setup both the c_marshaller (to g_cclosure_marshal_VOID__VOID) and
va_marshaller (to g_cclosure_marshal_VOID__VOIDv) for us.
Diffstat (limited to 'gtk/gtkscalebutton.c')
-rw-r--r-- | gtk/gtkscalebutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index ac373f922d..fa683db75f 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -275,7 +275,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass) G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gtk_scale_button_popup), NULL, NULL, - g_cclosure_marshal_VOID__VOID, + NULL, G_TYPE_NONE, 0); /** @@ -294,7 +294,7 @@ gtk_scale_button_class_init (GtkScaleButtonClass *klass) G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gtk_scale_button_popdown), NULL, NULL, - g_cclosure_marshal_VOID__VOID, + NULL, G_TYPE_NONE, 0); /* Key bindings */ |