Check if the activity is GTK3 or GTK2 in the view source dialog

This requires https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/104

This uses a hack as a fallback