summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2019-06-06 15:27:54 -0700
committerChristian Hergert <chergert@redhat.com>2019-06-06 15:30:42 -0700
commit828c36636cfe975ed2771b72d6fdffa8f0e691eb (patch)
tree1b1043ff39ecf524251d129368ba04f4376964e8 /gtk/gtkswitch.c
parentc168116e6405f2de8974d5180549982ee7ee31a3 (diff)
downloadgtk+-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/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 1d3dce8106..9ff8efb43f 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -620,6 +620,9 @@ gtk_switch_class_init (GtkSwitchClass *klass)
_gtk_marshal_BOOLEAN__BOOLEAN,
G_TYPE_BOOLEAN, 1,
G_TYPE_BOOLEAN);
+ g_signal_set_va_marshaller (signals[STATE_SET],
+ G_TYPE_FROM_CLASS (gobject_class),
+ _gtk_marshal_BOOLEAN__BOOLEANv);
g_object_class_override_property (gobject_class, PROP_ACTION_NAME, "action-name");
g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target");