gtk2: use "ifdef" instead of "if defined"

Because "ifdef" is used in other locations.