replace use of Gio:: with primitives (fix for #5889 part 1)
replace use of Gio:: for plugin state