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

Re: g_signal_connect() and passing multiple arguments



> hello,
>
> i'm a c/c++ AND gtk newbie and i have a question to you geeks:
>
> how can i pass more than one argument/variable to a function like this
with g_signal_connect() ?
>
> gint function_test( gpointer emitter, gpointer liste, gpointer entry,
gpointer something else ){
>   // do something
> }

The most obvious solution I am able to think of would be to pass a gpointer
to a struct
comprising these four arguments.

Michal "Gleba" Ziemski




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