[Bugs] #3895 sugar UNSP: Tabbinghandler not working
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Fri Sep 14 20:43:23 EDT 2012
#3895: Tabbinghandler not working
------------------------------------------+---------------------------------
Reporter: erikos | Owner: erikos
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.98
Component: sugar | Version: 0.97.x
Severity: Blocker | Keywords: regression
Distribution: Unspecified | Status_field: Assigned
------------------------------------------+---------------------------------
Comment(by manuq):
It doesn't seem to be a direct way to get the keyboard device, but we can
get a list of the master devices that should include it:
{{{
display = Gdk.Display.get_default()
device_manager = display.get_device_manager()
self._devices = device_manager.list_devices(Gdk.DeviceType.MASTER)
}}}
Also we need the pointer device. There is a direct way for this one, and
the list of devices includes it. In my system is the second element:
{{{
self._pointer_device = device_manager.get_client_pointer()
assert self._pointer_device == self._devices[1]
}}}
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3895#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list