GtkActionEntry doesn't allow closures?



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, making it easy to form closures.

Am I missing something, or is it not possible to deal with closures in GtkActionEntry?

struct _GtkActionEntry
{
  const gchar *name;
  const gchar *stock_id;
  const gchar *label;
  const gchar *accelerator;
  const gchar *tooltip;
  GCallback callback;    /* Ummm, what about closures? */
};

BTW, thank you for GTK+, "thou art god" as Heinlein might say.

Jason

--
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257






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