static void _rut_shim_free (void *object) { RutShim *shim = object; rut_closure_list_disconnect_all (&shim->preferred_size_cb_list); rut_graphable_destroy (shim); g_slice_free (RutShim, object); }
static void _rut_fixed_free (void *object) { RutFixed *fixed = object; rut_closure_list_disconnect_all (&fixed->preferred_size_cb_list); rut_graphable_destroy (fixed); g_slice_free (RutFixed, object); }
static void _rut_shape_free (void *object) { RutShape *shape = object; rut_refable_unref (shape->model); rut_simple_introspectable_destroy (shape); rut_closure_list_disconnect_all (&shape->reshaped_cb_list); g_slice_free (RutShape, shape); }
void rig_transition_free (RigTransition *transition) { rut_closure_list_disconnect_all (&transition->operation_cb_list); rut_simple_introspectable_destroy (transition); g_hash_table_destroy (transition->properties); rut_refable_unref (transition->context); g_slice_free (RigTransition, transition); }
static void _rut_pointalism_grid_free (void *object) { RutPointalismGrid *grid = object; rut_closure_list_disconnect_all (&grid->updated_cb_list); rut_refable_unref (grid->slice); rut_refable_unref (grid->pick_mesh); rut_simple_introspectable_destroy (grid); g_slice_free (RutPointalismGrid, grid); }
static void _rut_bin_free (void *object) { RutBin *bin = object; rut_closure_list_disconnect_all (&bin->preferred_size_cb_list); rut_bin_set_child (bin, NULL); rut_shell_remove_pre_paint_callback_by_graphable (bin->context->shell, bin); rut_graphable_destroy (bin); g_slice_free (RutBin, bin); }
void rig_selection_tool_destroy (RigSelectionTool *tool) { GList *l; rut_closure_list_disconnect_all (&tool->selection_event_cb_list); cogl_object_unref (tool->default_pipeline); for (l = tool->selected_entities; l; l = l->next) entity_state_destroy (l->data); g_list_free (tool->selected_entities); g_slice_free (RigSelectionTool, tool); }
static void _rut_button_free (void *object) { RutButton *button = object; rut_closure_list_disconnect_all (&button->on_click_cb_list); destroy_button_slices (button); if (button->normal_texture) { cogl_object_unref (button->normal_texture); button->normal_texture = NULL; } if (button->hover_texture) { cogl_object_unref (button->hover_texture); button->hover_texture = NULL; } if (button->active_texture) { cogl_object_unref (button->active_texture); button->active_texture = NULL; } if (button->disabled_texture) { cogl_object_unref (button->disabled_texture); button->disabled_texture = NULL; } rut_graphable_remove_child (button->text); rut_refable_unref (button->text); rut_graphable_remove_child (button->text_transform); rut_refable_unref (button->text_transform); rut_graphable_destroy (button); rut_shell_remove_pre_paint_callback_by_graphable (button->ctx->shell, button); g_slice_free (RutButton, object); }
static void _rut_icon_button_free (void *object) { RutIconButton *button = object; rut_closure_list_disconnect_all (&button->on_click_cb_list); destroy_icons (button); if (button->label) { rut_graphable_remove_child (button->label); rut_refable_unref (button->label); } /* NB: This will destroy the stack, layout and input_region which * we don't hold extra references for... */ rut_graphable_destroy (button); g_slice_free (RutIconButton, object); }