[gtk+] Add some va marshallers to frequent signals
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add some va marshallers to frequent signals
- Date: Tue, 19 Apr 2016 20:12:44 +0000 (UTC)
commit 51d58108f93261d6311f823736ce92369272d491
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 19 16:11:10 2016 -0400
Add some va marshallers to frequent signals
This makes us take the fast path in signal emission.
gtk/gtkcssnode.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c
index 25df531..46a02f0 100644
--- a/gtk/gtkcssnode.c
+++ b/gtk/gtkcssnode.c
@@ -593,6 +593,10 @@ gtk_css_node_class_init (GtkCssNodeClass *klass)
_gtk_marshal_VOID__OBJECT_OBJECT,
G_TYPE_NONE, 2,
GTK_TYPE_CSS_NODE, GTK_TYPE_CSS_NODE);
+ g_signal_set_va_marshaller (cssnode_signals[NODE_ADDED],
+ G_TYPE_FROM_CLASS (klass),
+ _gtk_marshal_VOID__OBJECT_OBJECTv);
+
cssnode_signals[NODE_REMOVED] =
g_signal_new (I_("node-removed"),
G_TYPE_FROM_CLASS (object_class),
@@ -602,6 +606,10 @@ gtk_css_node_class_init (GtkCssNodeClass *klass)
_gtk_marshal_VOID__OBJECT_OBJECT,
G_TYPE_NONE, 2,
GTK_TYPE_CSS_NODE, GTK_TYPE_CSS_NODE);
+ g_signal_set_va_marshaller (cssnode_signals[NODE_REMOVED],
+ G_TYPE_FROM_CLASS (klass),
+ _gtk_marshal_VOID__OBJECT_OBJECTv);
+
cssnode_signals[STYLE_CHANGED] =
g_signal_new (I_("style-changed"),
G_TYPE_FROM_CLASS (object_class),
@@ -611,6 +619,9 @@ gtk_css_node_class_init (GtkCssNodeClass *klass)
_gtk_marshal_VOID__POINTER,
G_TYPE_NONE, 1,
G_TYPE_POINTER);
+ g_signal_set_va_marshaller (cssnode_signals[STYLE_CHANGED],
+ G_TYPE_FROM_CLASS (klass),
+ _gtk_marshal_VOID__POINTERv);
cssnode_properties[PROP_CLASSES] =
g_param_spec_boxed ("classes", P_("Style Classes"), P_("List of classes"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]