Modify example for locale
Fixes glib object references