~mhr3/libunity/remote-scope-fixes

« back to all changes in this revision

Viewing changes to src/unity-scope-proxy-remote.vala

  • Committer: Michal Hruby
  • Date: 2012-04-18 10:25:08 UTC
  • Revision ID: michal.mhr@gmail.com-20120418102508-etm0limsbtp6w7so
Make sure ScopeError is registered as dbus error before doing remote scope searches

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
  construct
79
79
  {
80
80
    sources = new CheckOptionFilter ("sources", "Sources", null, true);
 
81
    // we need to init the scope error quark, so it's registered with gdbus
 
82
    // otherwise we could get unmapped error from the scope
 
83
    Error init_scope_error = new ScopeError.UNKNOWN ("Initialization");
81
84
    try {
82
85
      _bus = Bus.get_sync (BusType.SESSION);
83
86
      _watcher = Bus.watch_name_on_connection (_bus,