GtkActionEntry doesn't allow closures?

2007-05-26 Thread Jason Hickey
I am developing a GTK+ binding for OMake (http://omake.metaprl.org). OMake has a functional language, so it has closures, etc. Pardon me if I am daft, but, - One cannot simply pass a GClosure where a GCallback is expected (!?). GTK+ is usually nice--each signal can be paired with data, m

Re: GtkActionEntry doesn't allow closures?

2007-05-26 Thread Michael Lawrence
On 5/26/07, Jason Hickey <[EMAIL PROTECTED]> wrote: I am developing a GTK+ binding for OMake (http://omake.metaprl.org). OMake has a functional language, so it has closures, etc. Pardon me if I am daft, but, - One cannot simply pass a GClosure where a GCallback is expected (!?). GTK+ is us

Re: GtkActionEntry doesn't allow closures?

2007-05-27 Thread Emmanuele Bassi
On Sat, 2007-05-26 at 18:57 -0700, Jason Hickey wrote: > I am developing a GTK+ binding for OMake (http://omake.metaprl.org). > OMake has a functional language, so it has closures, etc. > > Am I missing something, or is it not possible to deal with closures > in GtkActionEntry? GtkActionEnt

Re: GtkActionEntry doesn't allow closures?

2007-05-27 Thread Jason Hickey
On May 27, 2007, at 7:27 AM, Emmanuele Bassi wrote: > in this particular case, the data passed to the callback is the one > you > pass to gtk_action_group_add_actions(): > > void gtk_action_group_add_actions (GtkActionGroup > *action_group, > const