Granite Instrospection not access to SourceList.root

Bug #1091078 reported by zodman on 2012-12-17
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Granite
New
Undecided
Unassigned

Bug Description

zodman@elementaryos:~/apps/granite/python/tests$ cat sourcelist_test.py
from gi.repository import Granite

s = Granite.WidgetsSourceList.new()
s.root

zodman@elementaryos:~/apps/granite/python/tests$ python sourcelist_test.py
Traceback (most recent call last):
  File "sourcelist_test.py", line 4, in <module>
    s.root
AttributeError: 'WidgetsSourceList' object has no attribute 'root'

Elio Esteves Duarte (stvs) wrote :

You can get the root property with the command:

root = s.get_property('root')

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers