[Bugs] #4134 sugar-toolkit-gtk3 URGE: Canvas auto panning based on input focus
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Mon Nov 12 15:11:06 EST 2012
#4134: Canvas auto panning based on input focus
-----------------------------------+----------------------------------------
Reporter: erikos | Owner: garnacho
Type: defect | Status: new
Priority: Urgent | Milestone: 0.98
Component: sugar-toolkit-gtk3 | Version: 0.97.x
Severity: Major | Keywords:
Distribution: OLPC | Status_field: Assigned
-----------------------------------+----------------------------------------
Comment(by godiard):
Tested in os11, this change do not solves all the issues.
We need resize the canvas area to use only the visible area, between the
toolbar and the osk,
if not, all the content in the bottom will not be accessible. Can be seen
in Terminal, Write or Paint.
Adding log in window.py __request_clear_area_cb method, this method is
never called, in Terminal or Write activities.
garnacho say: garnacho> gonzalo__, it's a signal that propagates from the
bottommost to the topmost widget, other widgets may intercept it, eg. a
scrolledwindow
I have tried catch the signal in other widgets without success.
I have tried to use the 'visibility-notify-change', on the canvas widget,
and we can get a information about if the canvas is
GDK_VISIBILITY_UNOBSCURED or GDK_VISIBILITY_PARTIAL, but I couldn't find
how get the size of the real area obscured by the osk. Tried different
ways, (the clipped area by cairo in the draw event, the allocated size by
the widget) but all have the information like if the widget is visible
behind the osk using all the available size.
I don't know if is available in any way, but is frustrating we don't have
a simple api to solve simple questions like: is the osk visible? how much
is the height/width? and commands to open/close on demand.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4134#comment:7>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list