[epiphany] Make the location action responsible of the model



commit 5645c6b89f9ce6eb3f110e7e5dcd72cb2064ae1c
Author: Xan Lopez <xan gnome org>
Date:   Sat Aug 15 14:07:05 2009 +0300

    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.

 lib/widgets/ephy-location-entry.c |    1 -
 src/ephy-location-action.c        |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 8a0bd53..cbe3d06 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 2ead756..fb40a74 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, 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]