[gom] sorting: Create the queue in init
- From: Mathieu Bridon <mbridon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] sorting: Create the queue in init
- Date: Thu, 9 Jul 2015 14:08:31 +0000 (UTC)
commit 3835899db1835b9876bea6a56771a84843049a8d
Author: Mathieu Bridon <bochecha daitauha fr>
Date: Wed Jul 8 22:42:15 2015 +0200
sorting: Create the queue in init
This is where it should have been from the start, otherwise using
g_object_new() won't have the queue created.
https://bugzilla.gnome.org/show_bug.cgi?id=752141
gom/gom-sorting.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gom/gom-sorting.c b/gom/gom-sorting.c
index bd91e8e..0b339ad 100644
--- a/gom/gom-sorting.c
+++ b/gom/gom-sorting.c
@@ -64,6 +64,7 @@ gom_sorting_init (GomSorting *sorting)
{
sorting->priv = G_TYPE_INSTANCE_GET_PRIVATE(sorting, GOM_TYPE_SORTING,
GomSortingPrivate);
+ sorting->priv->order_by_terms = g_queue_new();
}
GType
@@ -152,7 +153,6 @@ gom_sorting_new (GType first_resource_type,
NULL);
sorting = g_object_new(GOM_TYPE_SORTING, NULL);
- sorting->priv->order_by_terms = g_queue_new();
resource_type = first_resource_type;
property_name = first_property_name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]