diff options
author | rbuj <[email protected]> | 2019-04-03 14:32:54 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-04-12 02:44:00 +0000 |
commit | f7c7f7f6bc7dbcf0bc25c158a278710e8a0c5dfe (patch) | |
tree | a633ca4e71f26d62290564bcafd021230acfaf44 | |
parent | 203399fc4969ea512c96592ec6a22218015f4fbd (diff) | |
download | caja-f7c7f7f6bc7dbcf0bc25c158a278710e8a0c5dfe.tar.bz2 caja-f7c7f7f6bc7dbcf0bc25c158a278710e8a0c5dfe.tar.xz |
eel: remove eel_g_object_list_ref
-rw-r--r-- | eel/eel-glib-extensions.c | 13 | ||||
-rw-r--r-- | eel/eel-glib-extensions.h | 3 | ||||
-rw-r--r-- | libcaja-private/caja-icon-canvas-item.c | 2 |
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); |