[gnome-panel] launcher: stop using GSlice
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] launcher: stop using GSlice
- Date: Sun, 14 Mar 2021 14:45:25 +0000 (UTC)
commit bb3b427fb96f2df06ce6e56a59733a914b91d808
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 16:02:54 2021 +0200
launcher: stop using GSlice
modules/launcher/gp-launcher-applet.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/launcher/gp-launcher-applet.c b/modules/launcher/gp-launcher-applet.c
index 600b84df1..54854b6ec 100644
--- a/modules/launcher/gp-launcher-applet.c
+++ b/modules/launcher/gp-launcher-applet.c
@@ -617,7 +617,7 @@ zoom_timeout_cb (gpointer user_data)
gtk_widget_destroy (zoom->win);
g_object_unref (zoom->icon);
- g_slice_free (ZoomData, zoom);
+ g_free (zoom);
return G_SOURCE_REMOVE;
}
@@ -648,7 +648,7 @@ draw_zoom_animation (GpLauncherApplet *self,
width += 2;
height += 2;
- zoom = g_slice_new (ZoomData);
+ zoom = g_new0 (ZoomData, 1);
zoom->size = MIN (width, height);
zoom->size_start = zoom->size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]