From: Michael Orlitzky Date: Mon, 8 Feb 2021 00:33:31 +0000 (-0500) Subject: panel-plugin/xfce4-hdaps.c: replace panel_slice_new0 with g_slice_new0. X-Git-Tag: v1.0.1~2 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=1b1046f1a9d4ffab99a9007e5296d02601f4421f;p=xfce4-hdaps.git 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(). --- 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;