Commit 3b02cb2e authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

use gimp_data_list_data_compare_func(), not just strcmp(), so the ordering

2003-03-09  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdatalist.c (gimp_data_list_uniquefy_data_name): use
	gimp_data_list_data_compare_func(), not just strcmp(), so the
	ordering of internal items is correct.
parent 2a5e3b42
2003-03-09 Michael Natterer <mitch@gimp.org>
* app/core/gimpdatalist.c (gimp_data_list_uniquefy_data_name): use
gimp_data_list_data_compare_func(), not just strcmp(), so the
ordering of internal items is correct.
2003-03-07 Sven Neumann <sven@gimp.org>
 
* plug-ins/common/deinterlace.c
......@@ -257,17 +257,14 @@ gimp_data_list_uniquefy_data_name (GimpDataList *data_list,
if (object == object2)
continue;
if (strcmp (object->name, object2->name) > 0)
if (gimp_data_list_data_compare_func (object, object2) > 0)
new_index++;
else
break;
}
if (new_index != old_index)
{
gimp_container_reorder (GIMP_CONTAINER (data_list),
object, new_index);
}
gimp_container_reorder (GIMP_CONTAINER (data_list), object, new_index);
}
}
......@@ -289,6 +286,6 @@ gimp_data_list_data_compare_func (gconstpointer first,
if (first_data->internal != second_data->internal)
return first_data->internal ? -1 : 1;
return strcmp (((const GimpObject *) first)->name,
return strcmp (((const GimpObject *) first)->name,
((const GimpObject *) second)->name);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment