diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-26 04:02:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-26 04:02:53 +0800 |
commit | 6e95a5fe46c4be44b37889a273624f87d6fe367e (patch) | |
tree | 5557398f341f78fd2c48938abc0d37d8f2e100df /lib | |
parent | 4e3b7b223e65470120512d7f06fd534b7d90176f (diff) | |
download | gsoc2013-epiphany-6e95a5fe46c4be44b37889a273624f87d6fe367e.tar.gz gsoc2013-epiphany-6e95a5fe46c4be44b37889a273624f87d6fe367e.tar.zst gsoc2013-epiphany-6e95a5fe46c4be44b37889a273624f87d6fe367e.zip |
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-node-filter.c: (ephy_node_filter_finalize),
(ephy_node_filter_new), (ephy_node_filter_add_expression):
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-node-filter.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/ephy-node-filter.c b/lib/ephy-node-filter.c index 1625c6ecb..863ddc8eb 100644 --- a/lib/ephy-node-filter.c +++ b/lib/ephy-node-filter.c @@ -139,7 +139,7 @@ ephy_node_filter_finalize (GObject *object) ephy_node_filter_empty (filter); - g_ptr_array_free (filter->priv->levels, FALSE); + g_ptr_array_free (filter->priv->levels, TRUE); G_OBJECT_CLASS (parent_class)->finalize (object); } @@ -147,14 +147,7 @@ ephy_node_filter_finalize (GObject *object) EphyNodeFilter * ephy_node_filter_new (void) { - EphyNodeFilter *filter; - - filter = EPHY_NODE_FILTER (g_object_new (EPHY_TYPE_NODE_FILTER, - NULL)); - - g_return_val_if_fail (filter->priv != NULL, NULL); - - return filter; + return EPHY_NODE_FILTER (g_object_new (EPHY_TYPE_NODE_FILTER, NULL)); } void @@ -165,6 +158,7 @@ ephy_node_filter_add_expression (EphyNodeFilter *filter, while (level >= filter->priv->levels->len) g_ptr_array_add (filter->priv->levels, NULL); + /* FIXME bogosity! This only works because g_list_append (x, data) == x */ g_ptr_array_index (filter->priv->levels, level) = g_list_append (g_ptr_array_index (filter->priv->levels, level), exp); } |