Re: sending GtkTreeSelection to other function

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

 



Le ven 18/06/2004 Ã 05:23, Ranieri a Ãcrit :
> how send a GtkTreeSelection *selection, to other function using 
> g_signal_connect ?
> Example:
> 
> void new_function(GtkTreeSelection **selection);
> 
> void main(int argc, char **argv)
> {
>     ...
>     ...
>     GtkTreeSelection *selection;
>     ...
>     ...
>     ...
>     g_signal_connect(G_OBJECT(button), "clicked", new_function, selection);
>     ...
>     ...
> }
> 
> What this wrong in this source code ?
> 
> Thanks!

Your callback should have a widget as first parameter:
void new_function (GtkWiget* w, GtkTreeSelection *selection);

Otherwise, you can connect the callback with g_signal_connect_swapped

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux