Example #1
0
void
rut_light_free (RutLight *light)
{
  rut_refable_unref (light->context);

  rut_simple_introspectable_destroy (light);

  g_slice_free (RutLight, light);
}
Example #2
0
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);
}
Example #3
0
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);
}
Example #4
0
static void
_rut_camera_free (void *object)
{
  RutCamera *camera = object;

  cogl_object_unref (camera->fb);

  while (camera->input_regions)
    rut_camera_remove_input_region (camera, camera->input_regions->data);

  rut_simple_introspectable_destroy (camera);

  g_slice_free (RutCamera, object);
}
Example #5
0
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);
}
Example #6
0
File: rut-fold.c Project: cee1/rig
static void
_rut_fold_free (void *object)
{
  RutFold *fold = object;

  rut_fold_set_child (fold, NULL);

  rut_refable_unref (fold->fold_up_icon);
  rut_refable_unref (fold->fold_down_icon);

  rut_graphable_destroy (fold);
  rut_simple_introspectable_destroy (fold);

  g_slice_free (RutFold, fold);
}