Hi,

I am trying to figure out the best way to use function pointers as
values in a GHashTable. My idea is to call different functions based
on different keys (strings).

Looking at the API, this looks impossible, as the values are gpointers
and not function pointers.

I'm thinking to wrap the function call in a structure, and hold its
pointer in the table.

Has anyone ever tried something similar ?

Best regards,
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to