From 1b1046f1a9d4ffab99a9007e5296d02601f4421f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 7 Feb 2021 19:33:31 -0500 Subject: [PATCH] panel-plugin/xfce4-hdaps.c: replace panel_slice_new0 with g_slice_new0. The panel_slice_new0() macro has apparently been deprecated since libxfce4panel-4.8, but who knew. Recent versions of glib (now required by the panel itself) provide the equivalent g_slice_new0(). --- panel-plugin/xfce4-hdaps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel-plugin/xfce4-hdaps.c b/panel-plugin/xfce4-hdaps.c index 4350023..59581df 100644 --- a/panel-plugin/xfce4-hdaps.c +++ b/panel-plugin/xfce4-hdaps.c @@ -235,7 +235,7 @@ static HdapsPlugin *hdaps_new(XfcePanelPlugin *plugin) { GtkOrientation orientation; /* Allocate memory for the plugin struct, and zero it. */ - hdaps = panel_slice_new0(HdapsPlugin); + hdaps = g_slice_new0(HdapsPlugin); /* The HdapsPlugin gets a copy of the XfcePanelPlugin. */ hdaps->plugin = plugin; -- 2.44.2