[gtk/wip/chergert/marshalling: 2/2] va_marshaller: add various va_marshallers



commit a3341378f96dfbc33d71c13673eafa15c9377842
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 31 15:49:32 2019 -0700

    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.

 gdk/Makefile.am                |  1 +
 gdk/gdkdisplay.c               |  3 ++
 gdk/gdkdisplaymanager.c        |  3 ++
 gdk/gdkwindow.c                | 15 +++++++++
 gtk/gtkcellrenderer.c          |  3 ++
 gtk/gtkcellrenderercombo.c     |  3 ++
 gtk/gtkcellrenderertext.c      |  3 ++
 gtk/gtkeditable.c              | 69 ++++++++++++++++++++++++++----------------
 gtk/gtkeventcontrollerscroll.c | 10 ++++--
 gtk/gtkflowbox.c               |  3 ++
 gtk/gtkiconview.c              |  6 ++++
 gtk/gtkimcontext.c             |  8 ++++-
 gtk/gtklistbox.c               |  3 ++
 gtk/gtkmarshalers.list         |  1 +
 gtk/gtknotebook.c              | 27 +++++++++++++++++
 gtk/gtkoverlay.c               |  3 ++
 gtk/gtkswitch.c                |  3 ++
 gtk/gtktexttagtable.c          |  3 ++
 gtk/gtktextview.c              |  9 ++++++
 gtk/gtktreemodel.c             | 12 ++++++++
 gtk/gtktreeview.c              | 39 ++++++++++++++++++++++++
 gtk/gtkwidget.c                | 45 +++++++++++++++++++++++++++
 22 files changed, 243 insertions(+), 29 deletions(-)
---
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index 74b9d0bbf4..2e6af4c3c9 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -456,6 +456,7 @@ gdkmarshalers.h: gdkmarshalers.list
 gdkmarshalers.c: gdkmarshalers.list
        $(AM_V_GEN) $(GLIB_GENMARSHAL) \
                --prefix=_gdk_marshal \
+               --valist-marshallers \
                --body \
                $(srcdir)/gdkmarshalers.list > gdkmarshalers-c.tmp      \
        && mv gdkmarshalers-c.tmp gdkmarshalers.c \
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 5c34a8c51f..240c99fa43 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -196,6 +196,9 @@ gdk_display_class_init (GdkDisplayClass *class)
                  G_TYPE_NONE,
                  1,
                  G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (signals[CLOSED],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gdk_marshal_VOID__BOOLEANv);
 
   /**
    * GdkDisplay::seat-added:
diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c
index bbd76805ef..d87ed133ae 100644
--- a/gdk/gdkdisplaymanager.c
+++ b/gdk/gdkdisplaymanager.c
@@ -162,6 +162,9 @@ gdk_display_manager_class_init (GdkDisplayManagerClass *klass)
                   G_TYPE_NONE,
                   1,
                   GDK_TYPE_DISPLAY);
+  g_signal_set_va_marshaller (signals[DISPLAY_OPENED],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gdk_marshal_VOID__OBJECTv);
 
   g_object_class_install_property (object_class,
                                    PROP_DEFAULT_DISPLAY,
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 6601a32c9c..838abcf4c7 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -382,6 +382,9 @@ gdk_window_class_init (GdkWindowClass *klass)
                  2,
                  G_TYPE_DOUBLE,
                  G_TYPE_DOUBLE);
+  g_signal_set_va_marshaller (signals[PICK_EMBEDDED_CHILD],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gdk_marshal_OBJECT__DOUBLE_DOUBLEv);
 
   /**
    * GdkWindow::to-embedder:
@@ -413,6 +416,9 @@ gdk_window_class_init (GdkWindowClass *klass)
                  G_TYPE_DOUBLE,
                  G_TYPE_POINTER,
                  G_TYPE_POINTER);
+  g_signal_set_va_marshaller (signals[TO_EMBEDDER],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gdk_marshal_VOID__DOUBLE_DOUBLE_POINTER_POINTERv);
 
   /**
    * GdkWindow::from-embedder:
@@ -444,6 +450,9 @@ gdk_window_class_init (GdkWindowClass *klass)
                  G_TYPE_DOUBLE,
                  G_TYPE_POINTER,
                  G_TYPE_POINTER);
+  g_signal_set_va_marshaller (signals[FROM_EMBEDDER],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gdk_marshal_VOID__DOUBLE_DOUBLE_POINTER_POINTERv);
 
   /**
    * GdkWindow::create-surface:
@@ -477,6 +486,9 @@ gdk_window_class_init (GdkWindowClass *klass)
                   2,
                   G_TYPE_INT,
                   G_TYPE_INT);
+  g_signal_set_va_marshaller (signals[CREATE_SURFACE],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gdk_marshal_BOXED__INT_INTv);
 
   /**
    * GdkWindow::moved-to-rect:
@@ -517,6 +529,9 @@ gdk_window_class_init (GdkWindowClass *klass)
                   G_TYPE_POINTER,
                   G_TYPE_BOOLEAN,
                   G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (signals[MOVED_TO_RECT],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gdk_marshal_VOID__POINTER_POINTER_BOOLEAN_BOOLEANv);
 }
 
 static void
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 085b25b4ed..d10cd09e10 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -282,6 +282,9 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
                  G_TYPE_NONE, 2,
                  GTK_TYPE_CELL_EDITABLE,
                  G_TYPE_STRING);
+  g_signal_set_va_marshaller (cell_renderer_signals[EDITING_STARTED],
+                              G_TYPE_FROM_CLASS (object_class),
+                              _gtk_marshal_VOID__OBJECT_STRINGv);
 
   g_object_class_install_property (object_class,
                                   PROP_MODE,
diff --git a/gtk/gtkcellrenderercombo.c b/gtk/gtkcellrenderercombo.c
index 78eb81bdad..e3b1ca6afd 100644
--- a/gtk/gtkcellrenderercombo.c
+++ b/gtk/gtkcellrenderercombo.c
@@ -204,6 +204,9 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
                  G_TYPE_NONE, 2,
                  G_TYPE_STRING,
                  GTK_TYPE_TREE_ITER);
+  g_signal_set_va_marshaller (cell_renderer_combo_signals[CHANGED],
+                              G_TYPE_FROM_CLASS (object_class),
+                              _gtk_marshal_VOID__STRING_BOXEDv);
 }
 
 static void
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index bd8b902dea..32eb15544c 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -689,6 +689,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  G_TYPE_STRING,
                  G_TYPE_STRING);
+  g_signal_set_va_marshaller (text_cell_renderer_signals [EDITED],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gtk_marshal_VOID__STRING_STRINGv);
 
   gtk_cell_renderer_class_set_accessible_type (cell_class, GTK_TYPE_TEXT_CELL_ACCESSIBLE);
 }
diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c
index 50d0df44ba..078f3f0ab7 100644
--- a/gtk/gtkeditable.c
+++ b/gtk/gtkeditable.c
@@ -74,6 +74,14 @@
 
 static void gtk_editable_base_init (gpointer g_class);
 
+enum {
+  CHANGED,
+  DELETE_TEXT,
+  INSERT_TEXT,
+  N_SIGNALS
+};
+
+static guint signals[N_SIGNALS];
 
 GType
 gtk_editable_get_type (void)
@@ -122,16 +130,20 @@ gtk_editable_base_init (gpointer g_class)
        * is possible to modify the inserted text, or prevent
        * it from being inserted entirely.
        */
-      g_signal_new (I_("insert-text"),
-                   GTK_TYPE_EDITABLE,
-                   G_SIGNAL_RUN_LAST,
-                   G_STRUCT_OFFSET (GtkEditableInterface, insert_text),
-                   NULL, NULL,
-                   _gtk_marshal_VOID__STRING_INT_POINTER,
-                   G_TYPE_NONE, 3,
-                   G_TYPE_STRING,
-                   G_TYPE_INT,
-                   G_TYPE_POINTER);
+      signals[INSERT_TEXT] =
+        g_signal_new (I_("insert-text"),
+                      GTK_TYPE_EDITABLE,
+                      G_SIGNAL_RUN_LAST,
+                      G_STRUCT_OFFSET (GtkEditableInterface, insert_text),
+                      NULL, NULL,
+                      _gtk_marshal_VOID__STRING_INT_POINTER,
+                      G_TYPE_NONE, 3,
+                      G_TYPE_STRING,
+                      G_TYPE_INT,
+                      G_TYPE_POINTER);
+      g_signal_set_va_marshaller (signals[INSERT_TEXT],
+                                  G_TYPE_FROM_CLASS (g_class),
+                                  _gtk_marshal_VOID__STRING_INT_POINTERv);
 
       /**
        * GtkEditable::delete-text:
@@ -149,15 +161,19 @@ gtk_editable_base_init (gpointer g_class)
        * and @end_pos parameters are interpreted as for
        * gtk_editable_delete_text().
        */
-      g_signal_new (I_("delete-text"),
-                   GTK_TYPE_EDITABLE,
-                   G_SIGNAL_RUN_LAST,
-                   G_STRUCT_OFFSET (GtkEditableInterface, delete_text),
-                   NULL, NULL,
-                   _gtk_marshal_VOID__INT_INT,
-                   G_TYPE_NONE, 2,
-                   G_TYPE_INT,
-                   G_TYPE_INT);
+      signals[DELETE_TEXT] =
+        g_signal_new (I_("delete-text"),
+                      GTK_TYPE_EDITABLE,
+                      G_SIGNAL_RUN_LAST,
+                      G_STRUCT_OFFSET (GtkEditableInterface, delete_text),
+                      NULL, NULL,
+                      _gtk_marshal_VOID__INT_INT,
+                      G_TYPE_NONE, 2,
+                      G_TYPE_INT,
+                      G_TYPE_INT);
+      g_signal_set_va_marshaller (signals[DELETE_TEXT],
+                                  G_TYPE_FROM_CLASS (g_class),
+                                  _gtk_marshal_VOID__INT_INTv);
       /**
        * GtkEditable::changed:
        * @editable: the object which received the signal
@@ -171,13 +187,14 @@ gtk_editable_base_init (gpointer g_class)
        * the new content, and may cause multiple ::notify::text signals
        * to be emitted).
        */ 
-      g_signal_new (I_("changed"),
-                   GTK_TYPE_EDITABLE,
-                   G_SIGNAL_RUN_LAST,
-                   G_STRUCT_OFFSET (GtkEditableInterface, changed),
-                   NULL, NULL,
-                   NULL,
-                   G_TYPE_NONE, 0);
+      signals[CHANGED] =
+        g_signal_new (I_("changed"),
+                      GTK_TYPE_EDITABLE,
+                      G_SIGNAL_RUN_LAST,
+                      G_STRUCT_OFFSET (GtkEditableInterface, changed),
+                      NULL, NULL,
+                      NULL,
+                      G_TYPE_NONE, 0);
 
       initialized = TRUE;
     }
diff --git a/gtk/gtkeventcontrollerscroll.c b/gtk/gtkeventcontrollerscroll.c
index a8dfd297df..91831f404f 100644
--- a/gtk/gtkeventcontrollerscroll.c
+++ b/gtk/gtkeventcontrollerscroll.c
@@ -405,8 +405,11 @@ gtk_event_controller_scroll_class_init (GtkEventControllerScrollClass *klass)
                   GTK_TYPE_EVENT_CONTROLLER_SCROLL,
                   G_SIGNAL_RUN_FIRST,
                   0, NULL, NULL,
-                 _gtk_marshal_VOID__DOUBLE_DOUBLE,
+                  _gtk_marshal_VOID__DOUBLE_DOUBLE,
                   G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
+  g_signal_set_va_marshaller (signals[SCROLL],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__DOUBLE_DOUBLEv);
   /**
    * GtkEventControllerScroll::scroll-end:
    * @controller: The object that received the signal
@@ -438,8 +441,11 @@ gtk_event_controller_scroll_class_init (GtkEventControllerScrollClass *klass)
                   GTK_TYPE_EVENT_CONTROLLER_SCROLL,
                   G_SIGNAL_RUN_FIRST,
                   0, NULL, NULL,
-                 _gtk_marshal_VOID__DOUBLE_DOUBLE,
+                  _gtk_marshal_VOID__DOUBLE_DOUBLE,
                   G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
+  g_signal_set_va_marshaller (signals[DECELERATE],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__DOUBLE_DOUBLEv);
 
   g_object_class_install_properties (object_class, N_PROPS, pspecs);
 }
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 8a884ac685..5a797f21e9 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -4012,6 +4012,9 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
                                        _gtk_marshal_BOOLEAN__ENUM_INT,
                                        G_TYPE_BOOLEAN, 2,
                                        GTK_TYPE_MOVEMENT_STEP, G_TYPE_INT);
+  g_signal_set_va_marshaller (signals[MOVE_CURSOR],
+                              G_TYPE_FROM_CLASS (class),
+                              _gtk_marshal_BOOLEAN__ENUM_INTv);
   /**
    * GtkFlowBox::select-all:
    * @box: the #GtkFlowBox on which the signal is emitted
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 866c745320..00084b4998 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -859,6 +859,9 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
                  NULL, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (icon_view_signals[ACTIVATE_CURSOR_ITEM],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__VOIDv);
   
   /**
    * GtkIconView::move-cursor:
@@ -891,6 +894,9 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
                  G_TYPE_BOOLEAN, 2,
                  GTK_TYPE_MOVEMENT_STEP,
                  G_TYPE_INT);
+  g_signal_set_va_marshaller (icon_view_signals[MOVE_CURSOR],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__ENUM_INTv);
 
   /* Key bindings */
   gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK, 
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index 5ca199f1d1..0a606d33f8 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",
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index c3df19b169..639d36b7dc 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -615,6 +615,9 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
                   _gtk_marshal_VOID__ENUM_INT,
                   G_TYPE_NONE, 2,
                   GTK_TYPE_MOVEMENT_STEP, G_TYPE_INT);
+  g_signal_set_va_marshaller (signals[MOVE_CURSOR],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__ENUM_INTv);
 
   widget_class->activate_signal = signals[ACTIVATE_CURSOR_ROW];
 
diff --git a/gtk/gtkmarshalers.list b/gtk/gtkmarshalers.list
index eceacfcd11..54dd71f205 100644
--- a/gtk/gtkmarshalers.list
+++ b/gtk/gtkmarshalers.list
@@ -58,6 +58,7 @@ VOID:DOUBLE,DOUBLE
 VOID:BOOLEAN,BOOLEAN,BOOLEAN
 VOID:BOXED,BOXED
 VOID:BOXED,BOXED,POINTER
+VOID:BOXED,ENUM
 VOID:BOXED,OBJECT
 VOID:BOXED,STRING,INT
 VOID:BOXED,UINT
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 51d9f5b65c..e07d1e184c 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -1049,6 +1049,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   G_TYPE_NONE, 2,
                   GTK_TYPE_WIDGET,
                   G_TYPE_UINT);
+  g_signal_set_va_marshaller (notebook_signals[SWITCH_PAGE],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_VOID__OBJECT_UINTv);
   notebook_signals[FOCUS_TAB] =
     g_signal_new (I_("focus-tab"),
                   G_TYPE_FROM_CLASS (gobject_class),
@@ -1058,6 +1061,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   _gtk_marshal_BOOLEAN__ENUM,
                   G_TYPE_BOOLEAN, 1,
                   GTK_TYPE_NOTEBOOK_TAB);
+  g_signal_set_va_marshaller (notebook_signals[FOCUS_TAB],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_BOOLEAN__ENUMv);
   notebook_signals[SELECT_PAGE] =
     g_signal_new (I_("select-page"),
                   G_TYPE_FROM_CLASS (gobject_class),
@@ -1067,6 +1073,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   _gtk_marshal_BOOLEAN__BOOLEAN,
                   G_TYPE_BOOLEAN, 1,
                   G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (notebook_signals[SELECT_PAGE],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_BOOLEAN__BOOLEANv);
   notebook_signals[CHANGE_CURRENT_PAGE] =
     g_signal_new (I_("change-current-page"),
                   G_TYPE_FROM_CLASS (gobject_class),
@@ -1076,6 +1085,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   _gtk_marshal_BOOLEAN__INT,
                   G_TYPE_BOOLEAN, 1,
                   G_TYPE_INT);
+  g_signal_set_va_marshaller (notebook_signals[CHANGE_CURRENT_PAGE],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_BOOLEAN__INTv);
   notebook_signals[MOVE_FOCUS_OUT] =
     g_signal_new (I_("move-focus-out"),
                   G_TYPE_FROM_CLASS (gobject_class),
@@ -1095,6 +1107,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   G_TYPE_BOOLEAN, 2,
                   GTK_TYPE_DIRECTION_TYPE,
                   G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (notebook_signals[REORDER_TAB],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_BOOLEAN__ENUM_BOOLEANv);
   /**
    * GtkNotebook::page-reordered:
    * @notebook: the #GtkNotebook
@@ -1116,6 +1131,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   G_TYPE_NONE, 2,
                   GTK_TYPE_WIDGET,
                   G_TYPE_UINT);
+  g_signal_set_va_marshaller (notebook_signals[PAGE_REORDERED],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_VOID__OBJECT_UINTv);
   /**
    * GtkNotebook::page-removed:
    * @notebook: the #GtkNotebook
@@ -1137,6 +1155,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   G_TYPE_NONE, 2,
                   GTK_TYPE_WIDGET,
                   G_TYPE_UINT);
+  g_signal_set_va_marshaller (notebook_signals[PAGE_REMOVED],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_VOID__OBJECT_UINTv);
   /**
    * GtkNotebook::page-added:
    * @notebook: the #GtkNotebook
@@ -1158,6 +1179,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   G_TYPE_NONE, 2,
                   GTK_TYPE_WIDGET,
                   G_TYPE_UINT);
+  g_signal_set_va_marshaller (notebook_signals[PAGE_ADDED],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_VOID__OBJECT_UINTv);
 
   /**
    * GtkNotebook::create-window:
@@ -1189,6 +1213,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
                   _gtk_marshal_OBJECT__OBJECT_INT_INT,
                   GTK_TYPE_NOTEBOOK, 3,
                   GTK_TYPE_WIDGET, G_TYPE_INT, G_TYPE_INT);
+  g_signal_set_va_marshaller (notebook_signals[CREATE_WINDOW],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_OBJECT__OBJECT_INT_INTv);
 
   binding_set = gtk_binding_set_by_class (class);
   gtk_binding_entry_add_signal (binding_set,
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 84128b5d51..be0788dfc6 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -827,6 +827,9 @@ gtk_overlay_class_init (GtkOverlayClass *klass)
                   G_TYPE_BOOLEAN, 2,
                   GTK_TYPE_WIDGET,
                   GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
+  g_signal_set_va_marshaller (signals[GET_CHILD_POSITION],
+                              G_TYPE_FROM_CLASS (object_class),
+                              _gtk_marshal_BOOLEAN__OBJECT_BOXEDv);
 
   gtk_widget_class_set_css_name (widget_class, "overlay");
 }
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index a26c97bc28..829bbb38e4 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -997,6 +997,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");
diff --git a/gtk/gtktexttagtable.c b/gtk/gtktexttagtable.c
index 7c4731c635..11e4c7d809 100644
--- a/gtk/gtktexttagtable.c
+++ b/gtk/gtktexttagtable.c
@@ -116,6 +116,9 @@ gtk_text_tag_table_class_init (GtkTextTagTableClass *klass)
                   2,
                   GTK_TYPE_TEXT_TAG,
                   G_TYPE_BOOLEAN);  
+  g_signal_set_va_marshaller (signals[TAG_CHANGED],
+                              G_OBJECT_CLASS_TYPE (object_class),
+                              _gtk_marshal_VOID__OBJECT_BOOLEANv);
 
   /**
    * GtkTextTagTable::tag-added:
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index c73c8ba710..2a215309c4 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1126,6 +1126,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  GTK_TYPE_MOVEMENT_STEP, 
                  G_TYPE_INT, 
                  G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (signals[MOVE_CURSOR],
+                              G_OBJECT_CLASS_TYPE (gobject_class),
+                              _gtk_marshal_VOID__ENUM_INT_BOOLEANv);
 
   /**
    * GtkTextView::move-viewport:
@@ -1151,6 +1154,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                                 G_TYPE_NONE, 2,
                                 GTK_TYPE_SCROLL_STEP,
                                 G_TYPE_INT);
+  g_signal_set_va_marshaller (signals[MOVE_VIEWPORT],
+                              G_OBJECT_CLASS_TYPE (gobject_class),
+                              _gtk_marshal_VOID__ENUM_INTv);
 
   /**
    * GtkTextView::set-anchor:
@@ -1224,6 +1230,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  GTK_TYPE_DELETE_TYPE,
                  G_TYPE_INT);
+  g_signal_set_va_marshaller (signals[DELETE_FROM_CURSOR],
+                              G_OBJECT_CLASS_TYPE (gobject_class),
+                              _gtk_marshal_VOID__ENUM_INTv);
 
   /**
    * GtkTextView::backspace:
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index 303a91106f..82a501e415 100644
--- a/gtk/gtktreemodel.c
+++ b/gtk/gtktreemodel.c
@@ -365,6 +365,9 @@ gtk_tree_model_base_init (gpointer g_class)
                       G_TYPE_NONE, 2,
                       GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE,
                       GTK_TYPE_TREE_ITER);
+      g_signal_set_va_marshaller (tree_model_signals[ROW_CHANGED],
+                                  G_TYPE_FROM_CLASS (g_class),
+                                  _gtk_marshal_VOID__BOXED_BOXEDv);
 
       /* We need to get notification about structure changes
        * to update row references., so instead of using the
@@ -403,6 +406,9 @@ gtk_tree_model_base_init (gpointer g_class)
                        _gtk_marshal_VOID__BOXED_BOXED,
                        G_TYPE_NONE, 2,
                        row_inserted_params);
+      g_signal_set_va_marshaller (tree_model_signals[ROW_INSERTED],
+                                  G_TYPE_FROM_CLASS (g_class),
+                                  _gtk_marshal_VOID__BOXED_BOXEDv);
 
       /**
        * GtkTreeModel::row-has-child-toggled:
@@ -423,6 +429,9 @@ gtk_tree_model_base_init (gpointer g_class)
                       G_TYPE_NONE, 2,
                       GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE,
                       GTK_TYPE_TREE_ITER);
+      g_signal_set_va_marshaller (tree_model_signals[ROW_HAS_CHILD_TOGGLED],
+                                  G_TYPE_FROM_CLASS (g_class),
+                                  _gtk_marshal_VOID__BOXED_BOXEDv);
 
       /**
        * GtkTreeModel::row-deleted:
@@ -479,6 +488,9 @@ gtk_tree_model_base_init (gpointer g_class)
                        _gtk_marshal_VOID__BOXED_BOXED_POINTER,
                        G_TYPE_NONE, 3,
                        rows_reordered_params);
+      g_signal_set_va_marshaller (tree_model_signals[ROWS_REORDERED],
+                                  G_TYPE_FROM_CLASS (g_class),
+                                  _gtk_marshal_VOID__BOXED_BOXED_POINTERv);
       initialized = TRUE;
     }
 }
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index d673356fe2..1459c983ef 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -1333,6 +1333,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  GTK_TYPE_TREE_PATH,
                  GTK_TYPE_TREE_VIEW_COLUMN);
+  g_signal_set_va_marshaller (tree_view_signals[ROW_ACTIVATED],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_VOID__BOXED_OBJECTv);
 
   /**
    * GtkTreeView::test-expand-row:
@@ -1355,6 +1358,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_BOOLEAN, 2,
                  GTK_TYPE_TREE_ITER,
                  GTK_TYPE_TREE_PATH);
+  g_signal_set_va_marshaller (tree_view_signals[TEST_EXPAND_ROW],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__BOXED_BOXEDv);
 
   /**
    * GtkTreeView::test-collapse-row:
@@ -1377,6 +1383,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_BOOLEAN, 2,
                  GTK_TYPE_TREE_ITER,
                  GTK_TYPE_TREE_PATH);
+  g_signal_set_va_marshaller (tree_view_signals[TEST_COLLAPSE_ROW],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__BOXED_BOXEDv);
 
   /**
    * GtkTreeView::row-expanded:
@@ -1396,6 +1405,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  GTK_TYPE_TREE_ITER,
                  GTK_TYPE_TREE_PATH);
+  g_signal_set_va_marshaller (tree_view_signals[ROW_EXPANDED],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_VOID__BOXED_BOXEDv);
 
   /**
    * GtkTreeView::row-collapsed:
@@ -1415,6 +1427,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  GTK_TYPE_TREE_ITER,
                  GTK_TYPE_TREE_PATH);
+  g_signal_set_va_marshaller (tree_view_signals[ROW_COLLAPSED],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_VOID__BOXED_BOXEDv);
 
   /**
    * GtkTreeView::columns-changed:
@@ -1481,6 +1496,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_BOOLEAN, 2,
                  GTK_TYPE_MOVEMENT_STEP,
                  G_TYPE_INT);
+  g_signal_set_va_marshaller (tree_view_signals[MOVE_CURSOR],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__ENUM_INTv);
 
   tree_view_signals[SELECT_ALL] =
     g_signal_new (I_("select-all"),
@@ -1490,6 +1508,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  NULL, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (tree_view_signals[SELECT_ALL],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__VOIDv);
 
   tree_view_signals[UNSELECT_ALL] =
     g_signal_new (I_("unselect-all"),
@@ -1499,6 +1520,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  NULL, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (tree_view_signals[UNSELECT_ALL],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__VOIDv);
 
   tree_view_signals[SELECT_CURSOR_ROW] =
     g_signal_new (I_("select-cursor-row"),
@@ -1509,6 +1533,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  _gtk_marshal_BOOLEAN__BOOLEAN,
                  G_TYPE_BOOLEAN, 1,
                  G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (tree_view_signals[SELECT_CURSOR_ROW],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__BOOLEANv);
 
   tree_view_signals[TOGGLE_CURSOR_ROW] =
     g_signal_new (I_("toggle-cursor-row"),
@@ -1518,6 +1545,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  NULL, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (tree_view_signals[TOGGLE_CURSOR_ROW],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__VOIDv);
 
   tree_view_signals[EXPAND_COLLAPSE_CURSOR_ROW] =
     g_signal_new (I_("expand-collapse-cursor-row"),
@@ -1530,6 +1560,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_BOOLEAN,
                  G_TYPE_BOOLEAN,
                  G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (tree_view_signals[EXPAND_COLLAPSE_CURSOR_ROW],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__BOOLEAN_BOOLEAN_BOOLEANv);
 
   tree_view_signals[SELECT_CURSOR_PARENT] =
     g_signal_new (I_("select-cursor-parent"),
@@ -1539,6 +1572,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  NULL, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (tree_view_signals[SELECT_CURSOR_PARENT],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__VOIDv);
 
   tree_view_signals[START_INTERACTIVE_SEARCH] =
     g_signal_new (I_("start-interactive-search"),
@@ -1548,6 +1584,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  NULL, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (tree_view_signals[START_INTERACTIVE_SEARCH],
+                              G_TYPE_FROM_CLASS (o_class),
+                              _gtk_marshal_BOOLEAN__VOIDv);
 
   /* Key bindings */
   gtk_tree_view_add_move_binding (binding_set, GDK_KEY_Up, 0, TRUE,
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 39b8c1b426..2848d757b5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2035,6 +2035,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  _gtk_marshal_BOOLEAN__BOOLEAN,
                  G_TYPE_BOOLEAN, 1,
                  G_TYPE_BOOLEAN);
+  g_signal_set_va_marshaller (widget_signals[MNEMONIC_ACTIVATE],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_BOOLEAN__BOOLEANv);
 
   /**
    * GtkWidget::grab-focus:
@@ -2065,6 +2068,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  _gtk_marshal_BOOLEAN__ENUM,
                  G_TYPE_BOOLEAN, 1,
                  GTK_TYPE_DIRECTION_TYPE);
+  g_signal_set_va_marshaller (widget_signals[FOCUS],
+                              G_TYPE_FROM_CLASS (gobject_class),
+                              _gtk_marshal_BOOLEAN__ENUMv);
 
   /**
    * GtkWidget::move-focus:
@@ -2105,6 +2111,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                   _gtk_marshal_BOOLEAN__ENUM,
                   G_TYPE_BOOLEAN, 1,
                   GTK_TYPE_DIRECTION_TYPE);
+  g_signal_set_va_marshaller (widget_signals[KEYNAV_FAILED],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__ENUMv);
 
   /**
    * GtkWidget::event:
@@ -2718,6 +2727,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE,
                  G_TYPE_UINT);
+  g_signal_set_va_marshaller (widget_signals[SELECTION_RECEIVED],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__BOXED_UINTv);
 
   /**
    * GtkWidget::selection-get:
@@ -2737,6 +2749,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE,
                  G_TYPE_UINT,
                  G_TYPE_UINT);
+  g_signal_set_va_marshaller (widget_signals[SELECTION_GET],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__BOXED_UINT_UINTv);
 
   /**
    * GtkWidget::proximity-in-event:
@@ -2816,6 +2831,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_NONE, 2,
                  GDK_TYPE_DRAG_CONTEXT,
                  G_TYPE_UINT);
+  g_signal_set_va_marshaller (widget_signals[DRAG_LEAVE],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__OBJECT_UINTv);
 
   /**
    * GtkWidget::drag-begin:
@@ -2905,6 +2923,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_BOOLEAN, 2,
                  GDK_TYPE_DRAG_CONTEXT,
                  GTK_TYPE_DRAG_RESULT);
+  g_signal_set_va_marshaller (widget_signals[DRAG_FAILED],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__OBJECT_ENUMv);
 
   /**
    * GtkWidget::drag-motion:
@@ -3015,6 +3036,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_INT,
                  G_TYPE_INT,
                  G_TYPE_UINT);
+  g_signal_set_va_marshaller (widget_signals[DRAG_MOTION],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__OBJECT_INT_INT_UINTv);
 
   /**
    * GtkWidget::drag-drop:
@@ -3049,6 +3073,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_INT,
                  G_TYPE_INT,
                  G_TYPE_UINT);
+  g_signal_set_va_marshaller (widget_signals[DRAG_DROP],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__OBJECT_INT_INT_UINTv);
 
   /**
    * GtkWidget::drag-data-get:
@@ -3077,6 +3104,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE,
                  G_TYPE_UINT,
                  G_TYPE_UINT);
+  g_signal_set_va_marshaller (widget_signals[DRAG_DATA_GET],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_VOID__OBJECT_BOXED_UINT_UINTv);
 
   /**
    * GtkWidget::drag-data-received:
@@ -3164,6 +3194,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE,
                  G_TYPE_UINT,
                  G_TYPE_UINT);
+   g_signal_set_va_marshaller (widget_signals[DRAG_DATA_RECEIVED],
+                               G_TYPE_FROM_CLASS (klass),
+                               _gtk_marshal_VOID__OBJECT_INT_INT_BOXED_UINT_UINTv);
 
   /**
    * GtkWidget::visibility-notify-event:
@@ -3194,6 +3227,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  _gtk_marshal_BOOLEAN__BOXED,
                  G_TYPE_BOOLEAN, 1,
                  GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE);
+  g_signal_set_va_marshaller (widget_signals[VISIBILITY_NOTIFY_EVENT],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__BOXEDv);
 
   /**
    * GtkWidget::window-state-event:
@@ -3317,6 +3353,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  G_TYPE_INT,
                  G_TYPE_BOOLEAN,
                  GTK_TYPE_TOOLTIP);
+  g_signal_set_va_marshaller (widget_signals[QUERY_TOOLTIP],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__INT_INT_BOOLEAN_OBJECTv);
 
   /**
    * GtkWidget::popup-menu:
@@ -3340,6 +3379,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  _gtk_boolean_handled_accumulator, NULL,
                  _gtk_marshal_BOOLEAN__VOID,
                  G_TYPE_BOOLEAN, 0);
+  g_signal_set_va_marshaller (widget_signals[POPUP_MENU],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__VOIDv);
 
   /**
    * GtkWidget::show-help:
@@ -3358,6 +3400,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                  _gtk_marshal_BOOLEAN__ENUM,
                  G_TYPE_BOOLEAN, 1,
                  GTK_TYPE_WIDGET_HELP_TYPE);
+  g_signal_set_va_marshaller (widget_signals[SHOW_HELP],
+                              G_TYPE_FROM_CLASS (klass),
+                              _gtk_marshal_BOOLEAN__ENUMv);
 
   /**
    * GtkWidget::accel-closures-changed:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]