summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-04-03 14:32:54 +0200
committerraveit65 <[email protected]>2022-07-19 23:27:06 +0200
commit78b04ba42c5db504cefbc8746ac81a546bdf07fb (patch)
treed72b107342991276b4ebaa85a0572f54cf156533
parentbfc8cda3ad694bae39338a40a4f03bbf186535fa (diff)
downloadcaja-78b04ba42c5db504cefbc8746ac81a546bdf07fb.tar.bz2
caja-78b04ba42c5db504cefbc8746ac81a546bdf07fb.tar.xz
eel: remove eel_g_object_list_ref
-rw-r--r--eel/eel-glib-extensions.c13
-rw-r--r--eel/eel-glib-extensions.h3
-rw-r--r--libcaja-private/caja-icon-canvas-item.c2
3 files changed, 1 insertions, 17 deletions
diff --git a/eel/eel-glib-extensions.c b/eel/eel-glib-extensions.c
index a32c2bba..5fd24055 100644
--- a/eel/eel-glib-extensions.c
+++ b/eel/eel-glib-extensions.c
@@ -684,19 +684,6 @@ eel_round (double d)
}
/**
- * eel_g_object_list_ref
- *
- * Ref all the objects in a list.
- * @list: GList of objects.
- **/
-GList *
-eel_g_object_list_ref (GList *list)
-{
- g_list_foreach (list, (GFunc) g_object_ref, NULL);
- return list;
-}
-
-/**
* eel_add_weak_pointer
*
* Nulls out a saved reference to an object when the object gets destroyed.
diff --git a/eel/eel-glib-extensions.h b/eel/eel-glib-extensions.h
index 089bbe98..a7f376b9 100644
--- a/eel/eel-glib-extensions.h
+++ b/eel/eel-glib-extensions.h
@@ -64,9 +64,6 @@ GList * eel_g_str_list_alphabetize (GList *
int eel_g_str_list_index (GList *str_list,
const char *str);
-/* List functions for lists of objects */
-GList * eel_g_object_list_ref (GList *list);
-
/* GHashTable functions */
GHashTable *eel_g_hash_table_new_free_at_exit (GHashFunc hash_function,
GCompareFunc key_compare_function,
diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c
index 37ba1672..044214d3 100644
--- a/libcaja-private/caja-icon-canvas-item.c
+++ b/libcaja-private/caja-icon-canvas-item.c
@@ -665,7 +665,7 @@ caja_icon_canvas_item_set_emblems (CajaIconCanvasItem *item,
}
/* Take in the new list of emblems. */
- eel_g_object_list_ref (emblem_pixbufs);
+ g_list_foreach (emblem_pixbufs, (GFunc) g_object_ref, NULL);
g_list_free_full (item->details->emblem_pixbufs, g_object_unref);
item->details->emblem_pixbufs = g_list_copy (emblem_pixbufs);