Granite Instrospection not access to SourceList.root

Bug #1091078 reported by zodman
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'

Tags: python
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.