Issue #9223: Recognize https:// as valid website prefix in ImageMap plug-in
This attempts to resolve issue 9223 for the development branch. Currently, the ImageMap plug-in's URL field only recognizes "http://" as a valid website prefix. This patch adds a second condition to also accept "https://".
However, the 2.10 behavior that automatically swapped prefixes based on selected URL type was broken in 2.99, so that was also fixed (by checking for the GTK_STATE_FLAG_ACTIVE
flag rather than GTK_STATE_FLAG_SELECTED
). Coding format updates were also made in the two functions that I worked in.
The bug report was for 2.10, so this will need to be backported to fully close-out the issue. It looks like there were other changes because just backporting these doesn't work properly; I'll investigate it further.