[Xfce4-commits] [xfce/xfce4-power-manager] 02/03: Replace xfconf_channel_new by xfconf_channel_get
noreply at xfce.org
noreply at xfce.org
Sun Apr 14 21:36:15 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-power-manager.
commit ccf1433b50df644d3452744e569313c05219984f
Author: Kacper PiwiĆski <vfjpl1 at gmail.com>
Date: Sun Apr 14 16:29:33 2019 -0300
Replace xfconf_channel_new by xfconf_channel_get
As recommended by docs
---
src/xfpm-xfconf.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/xfpm-xfconf.c b/src/xfpm-xfconf.c
index 4e9472a..37868bf 100644
--- a/src/xfpm-xfconf.c
+++ b/src/xfpm-xfconf.c
@@ -643,8 +643,8 @@ xfpm_xfconf_init (XfpmXfconf *conf)
}
else
{
- conf->priv->channel = xfconf_channel_new ("xfce4-power-manager");
- conf->priv->session_channel = xfconf_channel_new ("xfce4-session");
+ conf->priv->channel = xfconf_channel_get (XFPM_CHANNEL);
+ conf->priv->session_channel = xfconf_channel_get ("xfce4-session");
/* if xfce4-session is around, sync to it on startup */
if ( xfconf_channel_has_property (conf->priv->session_channel, "/shutdown/LockScreen") )
@@ -685,12 +685,6 @@ xfpm_xfconf_finalize(GObject *object)
}
g_free (conf->priv->values);
-
- if (conf->priv->channel )
- g_object_unref (conf->priv->channel);
-
- if (conf->priv->session_channel )
- g_object_unref (conf->priv->session_channel);
G_OBJECT_CLASS(xfpm_xfconf_parent_class)->finalize(object);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list