[pygtk] GConf ChangetSet and lists

Peter Moberg moberg.peter at gmail.com
Tue Jun 13 18:52:40 WST 2006


Hi,

I'm trying to use GConf ChangeSet to set a list in GConf.

This is how I'm using it:

import gconf
client =3D gconf.client_get_default()changeSet =3D gconf.ChangeSet()

v1 =3D gconf.Value(gconf.VALUE_STRING)
v2 =3D gconf.Value(gconf.VALUE_STRING)
v1.set_string("a")
v2.set_string("b")

changeSet.set_list("/apps/test/qwerty", gconf.VALUE_STRING, [v1,v2])
client.commit_change_set(changeSet, True)

This doesn't work. '/apps/test/qwerty' is not set, and no error is given.
Does anyone know how to do this?


Best Regards
Peter Moberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060613/ba4968f5/at=
tachment.htm


More information about the pygtk mailing list