To set default cursor theme and acceleration:<u><br><br>accessibility_0012_add-accel-mouse-default.patch:</u><br><br>diff -u -r -N sugar-0.88.1-original/src/jarabe/model/accessibility.py sugar-0.88.1/src/jarabe/model/accessibility.py<br>
--- sugar-0.88.1-original/src/jarabe/model/accessibility.py 2010-09-07 09:05:03.356621000 -0300<br>+++ sugar-0.88.1/src/jarabe/model/accessibility.py 2010-09-07 09:11:39.978625385 -0300<br>@@ -150,6 +150,7 @@<br> <br>
WHITE_CURSOR_THEME="FlatbedCursors.White.Huge"<br> DEFAULT_CURSOR_THEME="sugar"<br>+ DEFAULT_ACCEL_MOUSE=3<br> <br> def get_white_mouse(self):<br> client = gconf.client_get_default()<br>
@@ -192,8 +193,11 @@<br> def setup_accessibility(self):<br> client = gconf.client_get_default()<br> is_accessibility = client.dir_exists("/desktop/sugar/accessibility")<br>+ mouse = Mouse()<br>
if is_accessibility:<br> keyboard = Keyboard()<br> keyboard.run_config_keyboard()<br>- mouse = Mouse()<br> mouse.run_config_mouse()<br>+ else:<br>+ mouse.set_accel_mouse(mouse.DEFAULT_ACCEL_MOUSE)<br>
+ mouse._set_accel_mouse_setting()<br><br><br><u>accessibility_0013_add-theme-mouse-default.patch</u>:<br><br>diff -u -r -N sugar-0.88.1.orig/src/jarabe/model/accessibility.py sugar-0.88.1/src/jarabe/model/accessibility.py<br>
--- sugar-0.88.1.orig/src/jarabe/model/accessibility.py 2010-09-09 17:10:44.658376397 -0300<br>+++ sugar-0.88.1/src/jarabe/model/accessibility.py 2010-09-09 17:13:03.646501286 -0300<br>@@ -200,4 +200,5 @@<br> mouse.run_config_mouse()<br>
else:<br> mouse.set_accel_mouse(mouse.DEFAULT_ACCEL_MOUSE)<br>+ mouse.set_white_mouse(False)<br> mouse._set_accel_mouse_setting()<br><br><br><br><br><br><div class="gmail_quote">
2011/3/9 Martin Abente <span dir="ltr"><<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In dextrose2 caacupe tests we noticed that many laptops<br>
had the standard x cursor theme instead of the sugar one.<br>
Apparently this bug was also present on dextrose1 builds.<br>
<br>
An interesting finding while looking at this report was<br>
that the accesibility code for changing cursor it simply<br>
does not affect the cursor at all, and the real change is<br>
being done at bin/sugar.<br>
<br>
I have not been able to determine when or how this<br>
empty value is being set (yet), but this patch will<br>
make sure it shows the sugar cursor theme whenever<br>
it happens.<br>
<br>
Could this patch make sense for mainstream sugar also?<br>
---<br>
bin/<a href="http://sugar.in" target="_blank">sugar.in</a> | 8 +++++---<br>
1 files changed, 5 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/bin/<a href="http://sugar.in" target="_blank">sugar.in</a> b/bin/<a href="http://sugar.in" target="_blank">sugar.in</a><br>
index bd6e95e..73af03c 100644<br>
--- a/bin/<a href="http://sugar.in" target="_blank">sugar.in</a><br>
+++ b/bin/<a href="http://sugar.in" target="_blank">sugar.in</a><br>
@@ -80,10 +80,12 @@ fi<br>
# Set cursor theme<br>
gconftool-2 --dir-exists=/desktop/sugar/peripherals/mouse<br>
EXIST_SUGAR_CURSOR_THEME=$(echo $?)<br>
+CURSOR_THEME="sugar"<br>
if [[ $EXIST_SUGAR_CURSOR_THEME == 0 ]]; then<br>
- CURSOR_THEME=$(gconftool-2 --get /desktop/sugar/peripherals/mouse/cursor_theme);<br>
-else<br>
- CURSOR_THEME="sugar"<br>
+ STORED_CURSOR_THEME=$(gconftool-2 --get /desktop/sugar/peripherals/mouse/cursor_theme);<br>
+ if [[ $STORED_CURSOR_THEME != "" ]]; then<br>
+ CURSOR_THEME=$STORED_CURSOR_THEME<br>
+ fi<br>
fi<br>
<font color="#888888"><br>
<br>
--<br>
1.7.1<br>
<br>
_______________________________________________<br>
Dextrose mailing list<br>
<a href="mailto:Dextrose@lists.sugarlabs.org">Dextrose@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/dextrose" target="_blank">http://lists.sugarlabs.org/listinfo/dextrose</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> Esteban Arias<br> Investigación y Desarrollo - Centro Ceibal<br> Avda. Italia 6201 - Edificio Los Ceibos<br> Montevideo - Uruguay.<br> Tel.: 2601.57.73 Interno 2228<br>
E-mail : <a href="mailto:earias@plan.ceibal.edu.uy" target="_blank">earias@plan.ceibal.edu.uy</a><br><br>