g_signal_connect_closure



Hello!

First sorry about my english.

I have copied some source from an other project. There was the
callback:
void move_cursor (GtkTextBuffer *buffer, GtkTextIter *iter,
        GtkTextMark *m, gpointer data)
{
  ...
}

connected to a GtkTextBuffer with:
g_signal_connect_closure (G_OBJECT (text), "mark_set",
              g_cclosure_new (move_cursor, NULL, NULL),
TRUE); It works but it gives a warning at compilation time:
warning: passing arg 1 of `g_cclosure_new' from incompatible pointer type

Is there a right way to do this?


thanks in advanced
Thomas








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