Advertisement
eagleoneraptor

Untitled

Apr 26th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Goa = imports.gi.Goa;
  2.  
  3. let client = Goa.Client.new_sync(null);
  4. let accounts = client.get_accounts();
  5. for (let i in accounts) {
  6.     //Now account is a instance of org.gnome.OnlineAccounts.Account
  7.     //DBus interface (GoaAccountProxy instance)
  8.     let account = accounts[i].get_account();
  9.  
  10.     //This prints null (the interface has no signals)
  11.     print(account.get_interface_info().signals);
  12. }
  13.  
  14. let info = Gio.DBusInterfaceInfo.new_for_xml (<org.gnome.OnlineAccounts.Account as XML>);
  15. //This doesn't prints null, but nothing (so, an empty array)
  16. //Why is that difference?
  17. print(info.signals);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement