if (trap->end_sequence == 0)
g_warning ("Display finalized with an unpopped error trap");
- g_slice_free (GdkErrorTrap, trap);
+ g_free (trap);
}
g_free (display_x11->program_class);
tmp_list = tmp_list->next;
display_x11->error_traps =
g_slist_delete_link (display_x11->error_traps, free_me);
- g_slice_free (GdkErrorTrap, trap);
+ g_free (trap);
}
else
{
/* set up the Xlib callback to tell us about errors */
_gdk_x11_error_handler_push ();
- trap = g_slice_new0 (GdkErrorTrap);
+ trap = g_new0 (GdkErrorTrap, 1);
trap->start_sequence = XNextRequest (display_x11->xdisplay);
trap->error_code = Success;
{
gdk_surface_hide (anim->drag->drag_surface);
g_object_unref (anim->drag);
- g_slice_free (GdkDragAnim, anim);
+ g_free (anim);
}
static gboolean
cairo_surface_destroy (surface);
*/
- anim = g_slice_new0 (GdkDragAnim);
+ anim = g_new0 (GdkDragAnim, 1);
anim->drag = g_object_ref (x11_drag);
anim->frame_clock = gdk_surface_get_frame_clock (x11_drag->drag_surface);
anim->start_time = gdk_frame_clock_get_frame_time (anim->frame_clock);
{
GdkX11PendingSelectionNotify *pending;
- pending = g_slice_new0 (GdkX11PendingSelectionNotify);
+ pending = g_new0 (GdkX11PendingSelectionNotify, 1);
pending->n_pending = 1;
pending->xevent.type = SelectionNotify;
static void
gdk_x11_pending_selection_notify_free (GdkX11PendingSelectionNotify *notify)
{
- g_slice_free (GdkX11PendingSelectionNotify, notify);
+ g_free (notify);
}
static void
g_error_free (error);
}
- g_slice_free (gulong, user_data);
+ g_free (user_data);
}
static void
{
gulong *time_;
- time_ = g_slice_new (gulong);
+ time_ = g_new (gulong, 1);
*time_ = timestamp;
g_output_stream_write_all_async (stream,
}
g_object_unref (data->display);
- g_slice_free (FreePixmapData, data);
+ g_free (data);
}
static void
static const cairo_user_data_key_t key;
FreePixmapData *data;
- data = g_slice_new (FreePixmapData);
+ data = g_new (FreePixmapData, 1);
data->display = g_object_ref (display);
data->pixmap = pixmap;