Typedef pointer to function
@krnowak
Submitted by Krzesimir Nowak Link to original bug (#573976)
Description
In GLib in public API all pointers to function are typedefed in manner like this: typedef gint (*GCompareFunc) (gconstpointer a, gconstpointer b);
I think it would be good to have the same situation in vte. I mean typedefing gboolean()(VteTerminal, gint, gint, gpointer) into something like this:
typedef gboolean (*VteIsSelectedFunc)(VteTerminal *terminal, glong column, glong row, gpointer data);
And then replace it in all vte_terminal_get_text functions.
My reason for it is that it would be easier to parse. I'm on writing C++ wrapper of vte and h2def.py from pygtk(pygobject) chokes on pointers to function given as a parameter, so I have to correct generated files manually.
I'll attach a patch.
Version: 0.19.x
Resolution: RESOLVED FIXED