~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to src/timer/src/timer.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    set_priority (G_PRIORITY_DEFAULT);
57
57
    attach (ctx);
58
58
 
59
 
    /* We have to unreference the source so that it is destroyed
60
 
     * when the main context destroys it */
61
 
    unreference ();
62
 
 
63
59
    connect (sigc::mem_fun <bool, CompTimeoutSource> (this, &CompTimeoutSource::callback));
64
60
}
65
61
 
73
69
    return connect_generic (slot);
74
70
}
75
71
 
76
 
CompTimeoutSource *
 
72
Glib::RefPtr<CompTimeoutSource>
77
73
CompTimeoutSource::create (Glib::RefPtr <Glib::MainContext> &ctx)
78
74
{
79
 
    return new CompTimeoutSource (ctx);
 
75
    return Glib::RefPtr<CompTimeoutSource> (new CompTimeoutSource (ctx));
80
76
}
81
77
 
82
78
static const unsigned short COMPIZ_TIMEOUT_WAIT = 15;