diff options
author | raveit65 <[email protected]> | 2016-07-11 17:06:15 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-07-25 16:13:41 +0200 |
commit | ff8f84fbab62f3c3fdc875a2b61a6d8a0654b2dc (patch) | |
tree | a7ea4da804c5143462cc6df8d9176d91b7737889 /src/gpm-dpms.c | |
parent | 85afd16cee70390540d73e0b66999b0d859d299e (diff) | |
download | mate-power-manager-ff8f84fbab62f3c3fdc875a2b61a6d8a0654b2dc.tar.bz2 mate-power-manager-ff8f84fbab62f3c3fdc875a2b61a6d8a0654b2dc.tar.xz |
Assign names to our idle sources when using newer versions of glib2
This makes it possible to profile more accurately using systemtap
taken from:
https://git.gnome.org/browse/gnome-power-manager/commit/?id=fbb075b5
Diffstat (limited to 'src/gpm-dpms.c')
-rw-r--r-- | src/gpm-dpms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpm-dpms.c b/src/gpm-dpms.c index 644ffe7..bb1e718 100644 --- a/src/gpm-dpms.c +++ b/src/gpm-dpms.c @@ -301,6 +301,7 @@ gpm_dpms_init (GpmDpms *dpms) dpms->priv->display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default()); dpms->priv->dpms_capable = DPMSCapable (dpms->priv->display); dpms->priv->timer_id = g_timeout_add_seconds (GPM_DPMS_POLL_TIME, (GSourceFunc)gpm_dpms_poll_mode_cb, dpms); + g_source_set_name_by_id (dpms->priv->timer_id, "[GpmDpms] poll"); /* ensure we clear the default timeouts (Standby: 1200s, Suspend: 1800s, Off: 2400s) */ gpm_dpms_clear_timeouts (dpms); |