I suggest it is better to remove separate #if section and change previous condiotion on defined (HAVE_GTK) || defined (HAVE_GTK3).
It is common note for whole file.