Changes

Jump to navigation Jump to search
8 bytes removed ,  14:16, 5 April 2012
Line 54: Line 54:  
The XO colors are stored using gconf:
 
The XO colors are stored using gconf:
   −
<code>~/.gconf/desktop/user/%gconf.xml</code>
+
<pre>~/.gconf/desktop/user/%gconf.xml</pre>
   −
<code>
+
<pre>
 
<?xml version="1.0"?>
 
<?xml version="1.0"?>
 
<gconf>
 
<gconf>
Line 66: Line 66:  
</entry>
 
</entry>
 
</gconf>
 
</gconf>
</code>
+
</pre>
    
The Python code used to write to gconf:
 
The Python code used to write to gconf:
   −
<code>
+
<pre>
client = gconf.client_get_default()
+
client = gconf.client_get_default()
client.set_string('/desktop/sugar/user/color', '%s,%s' % (
+
client.set_string('/desktop/sugar/user/color', '%s,%s' % (
 
     self._game.colors[0], self._game.colors[1]))
 
     self._game.colors[0], self._game.colors[1]))
</code>
+
</pre>
    
== Credits ==
 
== Credits ==
    
XOEditor was written and is maintained by [[User:Walter]].
 
XOEditor was written and is maintained by [[User:Walter]].

Navigation menu