From 979308aa7f42073e309737cd18da58731437bf3a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Tue, 26 Oct 2010 16:18:15 +0200
Subject: Manage LdLibrary children in a GSList.
The previous method of containment, that is using GHashTable,
did not list children in any particular order.
Also names of children were duplicated. One copy has been
stored as a hash table index and another was present in the
child itself.
---
src/ld-library.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'src/ld-library.h')
diff --git a/src/ld-library.h b/src/ld-library.h
index 76a76a5..eb0673f 100644
--- a/src/ld-library.h
+++ b/src/ld-library.h
@@ -42,9 +42,6 @@ struct _LdLibrary
/*< private >*/
GObject parent_instance;
LdLibraryPrivate *priv;
-
-/*< public >*/
- GHashTable *categories;
};
struct _LdLibraryClass
@@ -62,6 +59,10 @@ LdLibrary *ld_library_new (void);
gboolean ld_library_load (LdLibrary *self, const gchar *directory);
void ld_library_clear (LdLibrary *self);
+void ld_library_insert_child (LdLibrary *self, GObject *child, gint pos);
+void ld_library_remove_child (LdLibrary *self, GObject *child);
+const GSList *ld_library_get_children (LdLibrary *self);
+
G_END_DECLS
--
cgit v1.2.3