From 5dc1015e9666ef59682c46e306ed3a4add0a9356 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 10 Jun 2000 21:13:07 +0000 Subject: Added e-printable.c and e-printable.h. 2000-06-10 Christopher James Lahey * Makefile.am: Added e-printable.c and e-printable.h. * e-printable.c, e-printable.h: This new class is a printing context. Other classes return an EPrintable which represents a context for printing that object. * e-util.c, e-util.h: Added e_marshal_NONE__OBJECT_DOUBLE_DOUBLE_BOOL and e_marshal_DOUBLE__OBJECT_DOUBLE_DOUBLE. svn path=/trunk/; revision=3510 --- e-util/e-util.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 55 insertions(+), 9 deletions(-) (limited to 'e-util/e-util.c') diff --git a/e-util/e-util.c b/e-util/e-util.c index 2571a0fbc3..a9c122eb74 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -160,22 +160,68 @@ e_write_file(const char *filename, const char *data, int flags) return 0; } -typedef gint (*GtkSignal_NONE__INT_INT_POINTER) (GtkObject * object, - gint arg1, - gint arg2, - gpointer arg3, - gpointer user_data); +typedef gint (*GtkSignal_INT__INT_INT_POINTER) (GtkObject * object, + gint arg1, + gint arg2, + gpointer arg3, + gpointer user_data); void e_marshal_INT__INT_INT_POINTER (GtkObject * object, GtkSignalFunc func, gpointer func_data, GtkArg * args) { - GtkSignal_NONE__INT_INT_POINTER rfunc; + GtkSignal_INT__INT_INT_POINTER rfunc; gint *return_val; return_val = GTK_RETLOC_INT (args[3]); - rfunc = (GtkSignal_NONE__INT_INT_POINTER) func; + rfunc = (GtkSignal_INT__INT_INT_POINTER) func; *return_val = (*rfunc) (object, - GTK_VALUE_INT (args[0]), - GTK_VALUE_INT (args[1]), GTK_VALUE_POINTER (args[2]), func_data); + GTK_VALUE_INT (args[0]), + GTK_VALUE_INT (args[1]), + GTK_VALUE_POINTER (args[2]), + func_data); +} + +typedef void (*GtkSignal_NONE__OBJECT_DOUBLE_DOUBLE_BOOL) (GtkObject * object, + GtkObject *arg1, + gdouble arg2, + gdouble arg3, + gboolean arg4, + gpointer user_data); + +void +e_marshal_NONE__OBJECT_DOUBLE_DOUBLE_BOOL (GtkObject * object, + GtkSignalFunc func, + gpointer func_data, GtkArg * args) +{ + GtkSignal_NONE__OBJECT_DOUBLE_DOUBLE_BOOL rfunc; + rfunc = (GtkSignal_NONE__OBJECT_DOUBLE_DOUBLE_BOOL) func; + (*rfunc) (object, + GTK_VALUE_OBJECT (args[0]), + GTK_VALUE_DOUBLE (args[1]), + GTK_VALUE_DOUBLE (args[2]), + GTK_VALUE_BOOL (args[3]), + func_data); +} + +typedef gdouble (*GtkSignal_DOUBLE__OBJECT_DOUBLE_DOUBLE) (GtkObject * object, + GtkObject *arg1, + gdouble arg2, + gdouble arg3, + gpointer user_data); + +void +e_marshal_DOUBLE__OBJECT_DOUBLE_DOUBLE (GtkObject * object, + GtkSignalFunc func, + gpointer func_data, GtkArg * args) +{ + GtkSignal_DOUBLE__OBJECT_DOUBLE_DOUBLE rfunc; + gdouble *return_val; + return_val = GTK_RETLOC_DOUBLE (args[3]); + rfunc = (GtkSignal_DOUBLE__OBJECT_DOUBLE_DOUBLE) func; + *return_val = (*rfunc) (object, + GTK_VALUE_OBJECT (args[0]), + GTK_VALUE_DOUBLE (args[1]), + GTK_VALUE_DOUBLE (args[2]), + func_data); } -- cgit