~stolowski/libunity/activate-result

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Michal Hruby
  • Date: 2013-03-28 16:38:05 UTC
  • mfrom: (351.1.3 libunity)
  • Revision ID: tarmac-20130328163805-0g7b96lniptwtkdh
Add support for quitting scopes after being idle for a while.

Approved by Pawel Stolowski, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
{
28
28
  public string dbus_name { get; construct; }
29
29
  public string dbus_path { get; construct; }
 
30
  public bool auto_reconnect { get; set; default = true; }
30
31
 
31
32
  // really Vala? no "private set;" when inheriting from interface?
32
33
  public bool visible { get { return _visible; } }
259
260
    if (_reconnection_id != 0)
260
261
      Source.remove (_reconnection_id);
261
262
 
 
263
    if (!auto_reconnect) return;
 
264
 
262
265
    _reconnection_id = Timeout.add_seconds (2, () =>
263
266
    {
264
267
      if (_service == null)