[Gambas-user] Settings

Fabien Bodard gambas.fr at ...626...
Sat Mar 5 22:30:06 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 :/

>
> '-------------------------------------------------------'
> [OperatingSystem]
> OperatingSystem=Linux
> KernelRelease=2.6.35.11-83.fc14.i686
> DistributionVendor=redhat
> DistributionRelease=Fedora release 14 (Laughlin)
>
> [System]
> CPUArchitecture=i686
> TotalRam=1793500 kB
> Desktop=Gnome
>
> [Gambas]
> Gambas1=Not Installed
> Gambas2=2.22.0
> Gambas2Path=/usr/local/bin/gbx2
> *Gambas3=2.99.0
> Gambas3Path=/usr/local/bin/gbx3
> Last revision (update 5 Mars)*
>
> ------------------------------------------------------------------------------
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



-- 
Fabien Bodard




More information about the User mailing list