[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: g_signal_connect_closure
- From: Havoc Pennington <hp redhat com>
- To: Thomas Weickert <thomas weickert gmx de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: g_signal_connect_closure
- Date: 30 Aug 2001 00:19:59 -0400
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]