[gnome-photos] base-manager: Use proper GHashTable API to get the count
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-manager: Use proper GHashTable API to get the count
- Date: Thu, 18 Jun 2015 13:29:36 +0000 (UTC)
commit 3def8d4c43803881ee9de77b4f3f81ed5c8ceca6
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jun 18 15:28:09 2015 +0200
base-manager: Use proper GHashTable API to get the count
src/photos-base-manager.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-manager.c b/src/photos-base-manager.c
index b836a45..928a768 100644
--- a/src/photos-base-manager.c
+++ b/src/photos-base-manager.c
@@ -384,12 +384,9 @@ photos_base_manager_get_objects (PhotosBaseManager *self)
guint
photos_base_manager_get_objects_count (PhotosBaseManager *self)
{
- GList *keys;
guint count;
- keys = g_hash_table_get_keys (self->priv->objects);
- count = g_list_length (keys);
- g_list_free (keys);
+ count = g_hash_table_size (self->priv->objects);
return count;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]