using type String[] do not save Settings

Bug #956944 reported by Corentin Noël on 2012-03-16
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Granite
Fix Released
Wishlist
Fabian Thoma

Bug Description

When I use a String[] variable with Granite.Services.Settings, the variable is not saved at all…

Related branches

  status triaged
  importance wishlist

Thanks for the report!

Unfortunately, you can't use AS (array of strings) in a granite settings
class directly. You have to access it with the gsettings schema of the
settings class. This is a known limitation, and unfortunately it is not
under our control.

See the Scratch settings class for instance.

Le 16/03/2012 14:18, Corentin Noël a écrit :
> Public bug reported:
>
> When I use a String[] variable with Granite.Services.Settings, the
> variable is not saved at all…
>
> ** Affects: granite
> Importance: Undecided
> Status: New
>
>
> ** Tags: save settings string
>

Changed in granite:
importance: Undecided → Wishlist
status: New → Triaged
Fabian Thoma (fabianthoma) wrote :

I created a branch capable of fixing this behaviour, I'd be glad if you xapantu could review it

Changed in granite:
status: Triaged → In Progress
assignee: nobody → Fabian Thoma (agent00tai)
Changed in granite:
status: In Progress → Fix Committed
Victor Martinez (victored) wrote :

Thanks for the fix Fabian. I made a mistake and forgot to merge your branch on a separate revision. That's why the commit message doesn't fully describe the actual changes.

Daniel Fore (danrabbit) on 2012-05-22
Changed in granite:
milestone: none → 0.1.1
Changed in granite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers