The selection of Geany being GTK2 or GTK3 is made when it is compiled as it has to be linked with the GTK2 or GTK3 libraries, it is not possible to select at runtime.
Can you post the versions of GTK and Glib that Geany reports in the first few lines of `Menu->help->debug messages`?