[Gambas-user] Settings

Benoît Minisini gambas at ...1...
Sat Mar 5 22:53:30 CET 2011


> 2011/3/5 Phạm Quang Dương <soleilpqd at ...626...>:
> > Hi,
> > 
> > I tried use Settings to read index.theme of icon theme:
> > 
> > cfgReader = NEW Settings("/path/to/index.theme")
> > 
> > With the file "~/.icons/elementaryXubuntu/index.theme"
> > [Icon Theme]
> > ....
> > Directories=actions/16,actions/22,.....
> > .....
> > 
> > cfgReader["Icon Theme/Directories"] return whole line. It's OK.
> > 
> > But with the file "/usr/share/icons/Fedora/index.theme" and other themes
> > in /usr/share/icons which have "Directories" line like this:
> > [Icon Theme]
> > ....
> > Directories=16x16/places,16x16/apps,.....
> > .....
> > 
> > cfgReader["Icon Theme/Directories"] return only 16
> > 
> > What wrong with 'x'?
> 
> nothing... it's a bug ... if the result begin by a number then if the
> next character is not a dot it return an integer :/
> 

It's not really a bug, but Settings must just be used for reading files 
written by Settings.

Reading files created elsewhere is not supported.

Regards,

-- 
Benoît Minisini




More information about the User mailing list