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

Re: g_signal_connect_closure



Thomas Weickert <thomas.weickert@gmx.de> writes: 
> 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?
> 

g_signal_connect (G_OBJECT (text), "mark_set",
                  G_CALLBACK (move_cursor), NULL);

Havoc




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