Converted LwPreferences to a gobject with reference counting