[Sugar-devel] [Dextrose] bug - dx2 - change view

Bernie Innocenti bernie at codewiz.org
Wed Sep 22 04:24:48 EDT 2010


On Tue, 2010-09-21 at 14:43 -0300, Esteban Arias wrote:
> Version: os1dx2.img
> 
> I press F1 and chenge the view correctly, and then F2 and F3 but dont
> change the view...
> I reboot and resolved the problem

I have seen this bug before! It happens when a modal dialog (such as the
control panel) is open and somehow you managed to move away.

IRRC, you could do it by clicking with the mouse cursor outside the
control panel window. Tincho discussed possible fixes with Tomeu some
time ago.

> 
> shell.log:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 151, in handle_zoom_group
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_GROUP, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 151, in handle_zoom_group
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_GROUP, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 151, in handle_zoom_group
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_GROUP, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 206, in _key_pressed_cb
>     method(event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/view/keyhandler.py", line 154, in handle_zoom_home
>     shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/jarabe/frame/zoomtoolbar.py", line 72, in __level_clicked_cb
>     shell.get_model().set_zoom_level(level)
>   File "/usr/lib/python2.6/site-packages/jarabe/model/shell.py", line 394, in set_zoom_level
>     active_window_type = screen.get_active_window().get_type_hint()
> AttributeError: 'NoneType' object has no attribute 'get_type_hint'
> 
> -- 
>     Esteban Arias
>     Investigación y Desarrollo - Plan Ceibal
>     Avda. Italia 6201
>     Montevideo - Uruguay.
>     Tel.: 2601.57.73 Interno 2228
>     E-mail : earias at plan.ceibal.edu.uy
> 
> _______________________________________________
> Dextrose mailing list
> Dextrose at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/dextrose

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/



More information about the Sugar-devel mailing list