diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-25 15:44:11 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-25 15:44:11 +0800 |
commit | 55702ec70beb591bf3e44b1a58d7cb8ab2c59c92 (patch) | |
tree | 240d5446bbba34dafce0671cf5e9d70833521cd0 /e-util/e-util.c | |
parent | 38a5ff75a721c82e458c6268da243972314aa517 (diff) | |
download | gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.gz gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.zst gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.zip |
Added a bunch of e_marshal functions.
2000-07-25 Christopher James Lahey <clahey@helixcode.com>
* e-util.c, e-util.h: Added a bunch of e_marshal functions.
svn path=/trunk/; revision=4311
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 100 |
1 files changed, 98 insertions, 2 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index c8c60fe1b3..83e83f7a75 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -253,6 +253,102 @@ e_marshal_BOOL__OBJECT_DOUBLE_DOUBLE_BOOL (GtkObject * object, func_data); } +typedef void (*GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT) (GtkObject * object, + gint arg1, + gint arg2, + gpointer arg3, + gpointer arg4, + gint arg5, + gint arg6, + gpointer user_data); +void +e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT (GtkObject * object, + GtkSignalFunc func, + gpointer func_data, GtkArg * args) +{ + GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT rfunc; + rfunc = (GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT) func; + (*rfunc) (object, + GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]), + GTK_VALUE_POINTER (args[2]), + GTK_VALUE_POINTER (args[3]), + GTK_VALUE_INT (args[4]), GTK_VALUE_INT (args[5]), func_data); +} + +typedef void (*GtkSignal_NONE__INT_INT_POINTER_INT) (GtkObject * object, + gint arg1, + gint arg2, + gpointer arg3, + gint arg4, gpointer user_data); +void +e_marshal_NONE__INT_INT_POINTER_INT (GtkObject * object, + GtkSignalFunc func, + gpointer func_data, GtkArg * args) +{ + GtkSignal_NONE__INT_INT_POINTER_INT rfunc; + rfunc = (GtkSignal_NONE__INT_INT_POINTER_INT) func; + (*rfunc) (object, + GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]), + GTK_VALUE_POINTER (args[2]), GTK_VALUE_INT (args[3]), func_data); +} + +typedef gboolean (*GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT) (GtkObject * object, + gint arg1, + gint arg2, + gpointer arg3, + gint arg4, + gint arg5, + gint arg6, + gpointer user_data); +void +e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT (GtkObject * object, + GtkSignalFunc func, + gpointer func_data, GtkArg * args) +{ + GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT rfunc; + gboolean *return_val; + return_val = GTK_RETLOC_BOOL (args[6]); + rfunc = (GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT) func; + *return_val = (*rfunc) (object, + GTK_VALUE_INT (args[0]), + GTK_VALUE_INT (args[1]), + GTK_VALUE_POINTER (args[2]), + GTK_VALUE_INT (args[3]), + GTK_VALUE_INT (args[4]), + GTK_VALUE_INT (args[5]), func_data); +} + +typedef void (*GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT) (GtkObject * + object, + gint arg1, + gint arg2, + gpointer + arg3, + gint arg4, + gint arg5, + gpointer + arg6, + gint arg7, + gint arg8, + gpointer + user_data); +void +e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT (GtkObject * object, + GtkSignalFunc func, + gpointer func_data, + GtkArg * args) +{ + GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT rfunc; + rfunc = (GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT) func; + (*rfunc) (object, + GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]), + GTK_VALUE_POINTER (args[2]), + GTK_VALUE_INT (args[3]), + GTK_VALUE_INT (args[4]), + GTK_VALUE_POINTER (args[5]), + GTK_VALUE_INT (args[6]), GTK_VALUE_INT (args[7]), func_data); +} + gchar** e_strsplit (const gchar *string, const gchar *delimiter, @@ -306,7 +402,7 @@ e_strsplit (const gchar *string, return str_array; } -gchar * +const gchar * e_strstrcase (const gchar *haystack, const gchar *needle) { /* find the needle in the haystack neglecting case */ @@ -321,7 +417,7 @@ e_strstrcase (const gchar *haystack, const gchar *needle) return NULL; if (len == 0) - return haystack; + return (char *)haystack; for (ptr = (char *)haystack; *(ptr + len - 1) != '\0'; ptr++) if (!g_strncasecmp(ptr, needle, len)) |