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: http://gitweb.michael.orlitzky.com/?p=xfce4-hdaps.git;a=commitdiff_plain;h=1b1046f1a9d4ffab99a9007e5296d02601f4421f;hp=c24aa39126c02c064a25c9774009b97654944dfc 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;