aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-08-15 19:07:05 +0800
committerXan Lopez <xan@gnome.org>2009-08-15 19:07:05 +0800
commit5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c (patch)
tree68896f98a703407e711befdb8dc9ad8a15951539
parent8cc47dde28022316d18be9a78fdb4bb668c9f2db (diff)
downloadgsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.tar
gsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.tar.gz
gsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.tar.bz2
gsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.tar.lz
gsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.tar.xz
gsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.tar.zst
gsoc2013-epiphany-5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c.zip
Make the location action responsible of the model
It does not make sense for the location entry to unref the model it gets as parameter.
-rw-r--r--lib/widgets/ephy-location-entry.c1
-rw-r--r--src/ephy-location-action.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 8a0bd5390..cbe3d065d 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -1193,7 +1193,6 @@ ephy_location_entry_set_completion (EphyLocationEntry *entry,
entry->priv->favicon_col = favicon_col;
sort_model = gtk_tree_model_sort_new_with_model (model);
- g_object_unref (model);
gtk_tree_sortable_set_sort_column_id
(GTK_TREE_SORTABLE (sort_model),
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index 2ead7567e..fb40a7482 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -443,6 +443,7 @@ connect_proxy (GtkAction *action, GtkWidget *proxy)
EPHY_COMPLETION_URL_COL,
EPHY_COMPLETION_EXTRA_COL,
EPHY_COMPLETION_FAVICON_COL);
+ g_object_unref (model);
ephy_location_entry_set_match_func (EPHY_LOCATION_ENTRY (proxy),
match_func,