Hi,
Attached are proof of concept patches for gtkcompat.h+ui_utils.h and insertnum.c, against the current git. With these, insertnum compiles and runs on anything - without the need to redefine any gtkcompat symbols. In general, the definitions are changed from:
#define gtk_2.24_or_3.x_function_name lower_gtk_version_emulation
to:
#define missing_in_gtk3_function_name gtk3_emulation
Of course, there is more work to be done - reverting the modernized plugins, checking if the proper gtk combo boxes are passed to ui_utils.c, and defining gtk_widget_get_allocated_width/height() for Geany and the core plugins (they are not used in geany-plugins).
I should have though of that earlier, sorry. RFC.