[Xfce4-commits] [panel-plugins/xfce4-sample-plugin] 01/02: Remove usage of deprecated panel_slice_*
noreply at xfce.org
noreply at xfce.org
Wed Nov 15 16:56:40 CET 2017
This is an automated email from the git hooks/post-receive script.
s k u n n y k 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 panel-plugins/xfce4-sample-plugin.
commit 2beb440575c54761703e3266bcc4b7037c079b6f
Author: Romain B <skunnyk at alteroot.org>
Date: Wed Nov 15 16:55:25 2017 +0100
Remove usage of deprecated panel_slice_*
- We should use g_slice_* now
---
panel-plugin/sample.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/sample.c b/panel-plugin/sample.c
index f146bb7..a157ecc 100644
--- a/panel-plugin/sample.c
+++ b/panel-plugin/sample.c
@@ -138,7 +138,7 @@ sample_new (XfcePanelPlugin *plugin)
GtkWidget *label;
/* allocate memory for the plugin structure */
- sample = panel_slice_new0 (SamplePlugin);
+ sample = g_slice_new0 (SamplePlugin);
/* pointer to plugin */
sample->plugin = plugin;
@@ -190,7 +190,7 @@ sample_free (XfcePanelPlugin *plugin,
g_free (sample->setting1);
/* free the plugin structure */
- panel_slice_free (SamplePlugin, sample);
+ g_slice_free (SamplePlugin, sample);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list