[gconf-editor] Don't use deprecated GConf synbols.



commit 7435119e107f164fa83751c9f593da593e74c331
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Mar 10 20:35:51 2010 +0100

    Don't use deprecated GConf synbols.

 src/gconf-list-model.c |    6 +++---
 src/gconf-search.c     |    8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gconf-list-model.c b/src/gconf-list-model.c
index 74c7466..27e1af6 100644
--- a/src/gconf-list-model.c
+++ b/src/gconf-list-model.c
@@ -102,7 +102,7 @@ gconf_list_model_notify_func (GConfClient* client, guint cnxn_id, GConfEntry *en
 
 		path = gtk_tree_model_get_path (GTK_TREE_MODEL (list_model), &iter);
 
-		gconf_entry_free (list->data);
+		gconf_entry_unref (list->data);
 
 		if (gconf_entry_get_value (entry) != NULL) {
 			list->data = gconf_entry_new (gconf_entry_get_key (entry),
@@ -139,7 +139,7 @@ gconf_list_model_set_root_path (GConfListModel *model, const gchar *root_path)
 			model->stamp++;
 			gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
 
-			gconf_entry_free (entry);
+			gconf_entry_unref (entry);
 		}
 
 		gconf_client_notify_remove (model->client, model->notify_id);
@@ -392,7 +392,7 @@ gconf_list_model_finalize (GObject *object)
         }
 
 	if (list_model->values) {
-		g_slist_foreach (list_model->values, (GFunc) gconf_entry_free, NULL);
+		g_slist_foreach (list_model->values, (GFunc) gconf_entry_unref, NULL);
 		g_slist_free (list_model->values);
 		list_model->values = NULL;
 	}
diff --git a/src/gconf-search.c b/src/gconf-search.c
index e5831cc..831548d 100644
--- a/src/gconf-search.c
+++ b/src/gconf-search.c
@@ -87,7 +87,7 @@ gconf_tree_model_search_iter_foreach (GtkTreeModel *model, GtkTreePath *path,
 				/* We found the pattern in the final key name */
 				gedit_output_window_append_line (st->output_window, key, FALSE);
 				st->res++;
-				gconf_entry_free (entry);
+				gconf_entry_unref (entry);
 				/* After finding an entry continue the list to find other matches */
 				continue;
 			}
@@ -103,7 +103,7 @@ gconf_tree_model_search_iter_foreach (GtkTreeModel *model, GtkTreePath *path,
 			if (gconf_value != NULL && gconf_value->type == GCONF_VALUE_STRING)
 				gconf_string = gconf_value_get_string (gconf_value);
 			else {
-				gconf_entry_free (entry);
+				gconf_entry_unref (entry);
 				continue;
 			}
 
@@ -112,11 +112,11 @@ gconf_tree_model_search_iter_foreach (GtkTreeModel *model, GtkTreePath *path,
 				/* We found the pattern in the key value */
 				gedit_output_window_append_line (st->output_window, key, FALSE);
 				st->res++;
-				gconf_entry_free (entry);
+				gconf_entry_unref (entry);
 				continue;
 			}
 		}
-		gconf_entry_free (entry);
+		gconf_entry_unref (entry);
 	}
 
 	return FALSE;



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