mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
Fix GPtrArray sorting function
GPtrArray's GCompareFunc passes a double pointer that needs to be dereferenced in order to use the data you are actually wanting to compare. See: https://developer.gnome.org/glib/stable/glib-Pointer-Arrays.html#g-ptr-array-sort
This commit is contained in:
parent
e930c7ef64
commit
6a507c0b63
@ -1228,8 +1228,8 @@ static gint
|
||||
gtk_tool_palette_compare_groups (gconstpointer a,
|
||||
gconstpointer b)
|
||||
{
|
||||
const GtkToolItemGroupInfo *group_a = a;
|
||||
const GtkToolItemGroupInfo *group_b = b;
|
||||
const GtkToolItemGroupInfo *group_a = *((GtkToolItemGroupInfo **) a);
|
||||
const GtkToolItemGroupInfo *group_b = *((GtkToolItemGroupInfo **) b);
|
||||
|
||||
return group_a->pos - group_b->pos;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user