mirror of https://github.com/GNOME/gimp.git
app: fix a few warnings.
Fixes:
> warning: passing argument 1 of ‘gimp_list_get_sort_func’ from incompatible pointer type
Since commit f4c6d4bb79
.
This commit is contained in:
parent
c687c5631d
commit
b11e529316
|
@ -310,7 +310,7 @@ gimp_filtered_container_new (GimpContainer *src_container,
|
|||
g_return_val_if_fail (GIMP_IS_LIST (src_container), NULL);
|
||||
|
||||
children_type = gimp_container_get_children_type (src_container);
|
||||
sort_func = gimp_list_get_sort_func (src_container);
|
||||
sort_func = gimp_list_get_sort_func (GIMP_LIST (src_container));
|
||||
|
||||
return g_object_new (GIMP_TYPE_FILTERED_CONTAINER,
|
||||
"sort-func", sort_func,
|
||||
|
|
|
@ -522,7 +522,7 @@ gimp_list_set_sort_func (GimpList *list,
|
|||
* Returns: The @list's sort function.
|
||||
**/
|
||||
GCompareFunc
|
||||
gimp_list_get_sort_func (GimpList*list)
|
||||
gimp_list_get_sort_func (GimpList *list)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_LIST (list), NULL);
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ gimp_tagged_container_new (GimpContainer *src_container)
|
|||
g_return_val_if_fail (GIMP_IS_LIST (src_container), NULL);
|
||||
|
||||
children_type = gimp_container_get_children_type (src_container);
|
||||
sort_func = gimp_list_get_sort_func (src_container);
|
||||
sort_func = gimp_list_get_sort_func (GIMP_LIST (src_container));
|
||||
|
||||
tagged_container = g_object_new (GIMP_TYPE_TAGGED_CONTAINER,
|
||||
"sort-func", sort_func,
|
||||
|
|
|
@ -253,7 +253,7 @@ gimp_container_editor_constructed (GObject *object)
|
|||
|
||||
if (GIMP_IS_LIST (editor->priv->container))
|
||||
gimp_container_view_set_reorderable (GIMP_CONTAINER_VIEW (editor->view),
|
||||
! gimp_list_get_sort_func (editor->priv->container));
|
||||
! gimp_list_get_sort_func (GIMP_LIST (editor->priv->container)));
|
||||
|
||||
if (editor->priv->menu_factory &&
|
||||
editor->priv->menu_identifier &&
|
||||
|
|
Loading…
Reference in New Issue