Beispiel #1
0
static void
clutter_paint_node_real_finalize (ClutterPaintNode *node)
{
  ClutterPaintNode *iter;

  g_free (node->name);

  if (node->operations != NULL)
    {
      guint i;

      for (i = 0; i < node->operations->len; i++)
        {
          ClutterPaintOperation *op;

          op = &g_array_index (node->operations, ClutterPaintOperation, i);
          clutter_paint_operation_clear (op);
        }

      g_array_unref (node->operations);
    }

  iter = node->first_child;
  while (iter != NULL)
    {
      ClutterPaintNode *next = iter->next_sibling;

      clutter_paint_node_remove_child (node, iter);

      iter = next;
    }

  g_type_free_instance ((GTypeInstance *) node);
}
Beispiel #2
0
/**
 * atk_registry_set_factory_type:
 * @registry: the #AtkRegistry in which to register the type association
 * @type: an #AtkObject type 
 * @factory_type: an #AtkObjectFactory type to associate with @type.  Must
 * implement AtkObject appropriate for @type.
 *
 * Associate an #AtkObjectFactory subclass with a #GType. Note:
 * The associated @factory_type will thereafter be responsible for
 * the creation of new #AtkObject implementations for instances
 * appropriate for @type.
 **/
void
atk_registry_set_factory_type (AtkRegistry *registry,
                               GType type,
                               GType factory_type)
{
  GType old_type;
  gpointer value;
  AtkObjectFactory *old_factory;

  g_return_if_fail (ATK_IS_REGISTRY (registry));

  value = g_hash_table_lookup (registry->factory_type_registry, 
                                  (gpointer) type);
  old_type = (GType) value;
  if (old_type && old_type != factory_type)
    {
      g_hash_table_remove (registry->factory_type_registry, 
                           (gpointer) type);
      /*
       * If the old factory was created, notify it that it has
       * been replaced, then free it.
       */
      old_factory = g_hash_table_lookup (registry->factory_singleton_cache, 
                                         (gpointer) old_type);
      if (old_factory)
        {
          atk_object_factory_invalidate (old_factory);
          g_type_free_instance ((GTypeInstance *) old_factory);
        }
    }
  g_hash_table_insert (registry->factory_type_registry, 
                       (gpointer) type, 
                       (gpointer) factory_type);
}
Beispiel #3
0
void grava_renderer_unref (gpointer instance) {
	GravaRenderer* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		GRAVA_RENDERER_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #4
0
void serializer_unref (gpointer instance) {
    Serializer* self;
    self = instance;
    if (g_atomic_int_dec_and_test (&self->ref_count)) {
        SERIALIZER_GET_CLASS (self)->finalize (self);
        g_type_free_instance ((GTypeInstance *) self);
    }
}
void matenu_background_unref (gpointer instance) {
	MatenuBackground* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		MATENU_BACKGROUND_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #6
0
void dpap_copy_unref (gpointer instance) {
	DPAPCopy* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		DPAP_COPY_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void daemon_helpers_date_time_converter_unref (gpointer instance) {
	DaemonHelpersDateTimeConverter* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		DAEMON_HELPERS_DATE_TIME_CONVERTER_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void image_exporter_unref (gpointer instance) {
	ImageExporter* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		IMAGE_EXPORTER_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #9
0
void ug_settings_unref (gpointer instance) {
	UGSettings* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		UG_SETTINGS_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #10
0
void gnomenu_mnemonic_keys_unref (gpointer instance) {
	GnomenuMnemonicKeys* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		GNOMENU_MNEMONIC_KEYS_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #11
0
void radare_debugger_unref (gpointer instance) {
	RadareDebugger* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		RADARE_DEBUGGER_GET_CLASS (self)->finalize (self);
		g_type_free_instance (((GTypeInstance *) (self)));
	}
}
Beispiel #12
0
void tag_unref (gpointer instance) {
	Tag* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		TAG_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #13
0
void qtable_entry_unref (gpointer instance) {
	QtableEntry* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		QTABLE_ENTRY_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #14
0
void radare_project_unref (gpointer instance) {
	RadareProject* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		RADARE_PROJECT_GET_CLASS (self)->finalize (self);
		g_type_free_instance (((GTypeInstance *) (self)));
	}
}
Beispiel #15
0
void zenmoney_unref (gpointer instance) {
	Zenmoney* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		ZENMONEY_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void gconf_interface_unref (gpointer instance) {
	GConfInterface* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		GCONF_INTERFACE_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void vala_source_reference_unref (gpointer instance) {
	ValaSourceReference* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		VALA_SOURCE_REFERENCE_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #18
0
void graphic_unref (gpointer instance) {
	Graphic* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		GRAPHIC_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #19
0
void rygel_resource_info_unref (gpointer instance) {
	RygelResourceInfo* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		RYGEL_RESOURCE_INFO_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #20
0
void vala_iterator_unref (gpointer instance) {
	ValaIterator* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		VALA_ITERATOR_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void bullet_vector_3_unref (gpointer instance) {
	BulletVector_3* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		BULLET_VECTOR_3_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #22
0
void rygel_gst_utils_unref (gpointer instance) {
	RygelGstUtils* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		RYGEL_GST_UTILS_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #23
0
void property_item_unref (gpointer instance) {
	PropertyItem* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		PROPERTY_ITEM_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #24
0
void vala_ccode_node_unref (gpointer instance) {
	ValaCCodeNode* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		VALA_CCODE_NODE_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #25
0
void vala_target_value_unref (gpointer instance) {
	ValaTargetValue* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		VALA_TARGET_VALUE_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #26
0
static void ease_main_editor_window_info_unref (gpointer instance) {
	EaseMainEditorWindowInfo* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		EASE_MAIN_EDITOR_WINDOW_INFO_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
Beispiel #27
0
void rygel_icon_info_unref (gpointer instance) {
	RygelIconInfo* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		RYGEL_ICON_INFO_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void dvb_plugin_factory_unref (gpointer instance) {
	DVBPluginFactory* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		DVB_PLUGIN_FACTORY_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void hello_world_unref (gpointer instance) {
	HelloWorld* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		HELLO_WORLD_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}
void request_handler_unref (gpointer instance) {
	RequestHandler* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		REQUEST_HANDLER_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}