aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-object-marshal.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-13 12:43:15 -0600
committerTed Gould <ted@gould.cx>2011-01-13 12:43:15 -0600
commit22a9ca4cf025fed3bedd6aa12643cfe4cacfd524 (patch)
tree019d13f8a9b9b81c1cad246d55f71f5a58911c25 /libindicator/indicator-object-marshal.c
parentdf21e797234f5bb4bd7e2a014296efe20ac6d2f3 (diff)
parentee32949d96d2c2243f4869c06d34d1d55031f411 (diff)
downloadlibayatana-indicator-22a9ca4cf025fed3bedd6aa12643cfe4cacfd524.tar.gz
libayatana-indicator-22a9ca4cf025fed3bedd6aa12643cfe4cacfd524.tar.bz2
libayatana-indicator-22a9ca4cf025fed3bedd6aa12643cfe4cacfd524.zip
Import upstream version 0.3.16
Diffstat (limited to 'libindicator/indicator-object-marshal.c')
-rw-r--r--libindicator/indicator-object-marshal.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/libindicator/indicator-object-marshal.c b/libindicator/indicator-object-marshal.c
index d5d526a..76a8cdf 100644
--- a/libindicator/indicator-object-marshal.c
+++ b/libindicator/indicator-object-marshal.c
@@ -163,3 +163,40 @@ _indicator_object_marshal_VOID__POINTER_UINT (GClosure *closure,
data2);
}
+/* VOID:POINTER,BOOLEAN (./indicator-object-marshal.list:4) */
+void
+_indicator_object_marshal_VOID__POINTER_BOOLEAN (GClosure *closure,
+ GValue *return_value G_GNUC_UNUSED,
+ guint n_param_values,
+ const GValue *param_values,
+ gpointer invocation_hint G_GNUC_UNUSED,
+ gpointer marshal_data)
+{
+ typedef void (*GMarshalFunc_VOID__POINTER_BOOLEAN) (gpointer data1,
+ gpointer arg_1,
+ gboolean arg_2,
+ gpointer data2);
+ register GMarshalFunc_VOID__POINTER_BOOLEAN callback;
+ register GCClosure *cc = (GCClosure*) closure;
+ register gpointer data1, data2;
+
+ g_return_if_fail (n_param_values == 3);
+
+ if (G_CCLOSURE_SWAP_DATA (closure))
+ {
+ data1 = closure->data;
+ data2 = g_value_peek_pointer (param_values + 0);
+ }
+ else
+ {
+ data1 = g_value_peek_pointer (param_values + 0);
+ data2 = closure->data;
+ }
+ callback = (GMarshalFunc_VOID__POINTER_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
+
+ callback (data1,
+ g_marshal_value_peek_pointer (param_values + 1),
+ g_marshal_value_peek_boolean (param_values + 2),
+ data2);
+}
+