core,tracker: MetadataValues.is_child_id_unique -> SimpleContainer
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 22 Dec 2010 12:56:10 +0000 (14:56 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 22 Dec 2010 13:30:49 +0000 (15:30 +0200)
commitc7d84f83f25491a7b53f0794f02acb9ea84d186c
tree8429d3abcaea7a1b7e203f54bbfaa1c92e14f710
parentde11280e8bf485d0782693e905d74591ce996c3e
core,tracker: MetadataValues.is_child_id_unique -> SimpleContainer

Move is_child_id_unique() method of MetadataValues to parent
SimpleContainer and make it 'public' as its useful for all users.

This method was broken for (intially) empty containers after the
introduction of SimpleContainer.add_child_container. This patch also fixes
that issue by comparing the ID string in question with that of emtpy child
containers as well.
src/plugins/tracker/rygel-tracker-metadata-values.vala
src/rygel/rygel-simple-container.vala