]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/commitdiff
panel-plugin/xfce4-hdaps.c: replace panel_slice_new0 with g_slice_new0.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 8 Feb 2021 00:33:31 +0000 (19:33 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 8 Feb 2021 00:33:31 +0000 (19:33 -0500)
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

index 4350023418990fb740315a689cc3f6d6f4ddef97..59581dfeb31f8892949fc3d75223ffe261507e5d 100644 (file)
@@ -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;