compiler error on win32 w/ Gtk2-1.143 (fix inside)



Hi again!

While trying to compile the new Gtk2 version I got an error concerning GtkTextBufferRichText.xs.

To fix it find:

################################################

static gboolean
gtk2perl_text_buffer_deserialize_func (GtkTextBuffer     *register_buffer,
                                       GtkTextBuffer     *content_buffer,
                                       GtkTextIter       *iter,
                                       const guint8      *data,
                                       gsize              length,
                                       gboolean           create_tags,
                                       gpointer           user_data,
                                       GError           **error)
{
        dGPERL_CALLBACK_MARSHAL_SP;
        GPerlCallback *callback = (GPerlCallback*) user_data;
        gboolean retval = TRUE;

################################################

And replace it with:

################################################

static gboolean
gtk2perl_text_buffer_deserialize_func (GtkTextBuffer     *register_buffer,
                                       GtkTextBuffer     *content_buffer,
                                       GtkTextIter       *iter,
                                       const guint8      *data,
                                       gsize              length,
                                       gboolean           create_tags,
                                       gpointer           user_data,
                                       GError           **error)
{
        dGPERL_CALLBACK_MARSHAL_SP;
        GPerlCallback *callback = (GPerlCallback*) user_data;
        gboolean retval = TRUE;

################################################

That it all. Compiling process completes fine after this change.

Greetings,
Mario



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