[network-manager-applet/NETWORKMANAGER_APPLET_0_7] Fix compiler warnings when using -DGCONF_DISABLE_DEPRECATED



commit 65e18ee207f69f0830856ab75def795bf56a6937
Author: Michael Biebl <biebl debian org>
Date:   Thu Apr 23 21:40:11 2009 +0200

    Fix compiler warnings when using -DGCONF_DISABLE_DEPRECATED
    
    Replace deprecated gconf_entry_free () with gconf_entry_unref ().
---
 src/gconf-helpers/gconf-helpers.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gconf-helpers/gconf-helpers.c b/src/gconf-helpers/gconf-helpers.c
index a32cc45..8ebb9ae 100644
--- a/src/gconf-helpers/gconf-helpers.c
+++ b/src/gconf-helpers/gconf-helpers.c
@@ -438,7 +438,7 @@ nm_gconf_get_valuehash_helper (GConfClient *client,
 		gc_key += prefix_len + 1; /* get rid of the full path */
 
 		add_property (*value, gc_key, gconf_entry_get_value (entry));
-		gconf_entry_free (entry);
+		gconf_entry_unref (entry);
 	}
 
 	g_slist_free (gconf_entries);
@@ -493,7 +493,7 @@ nm_gconf_get_stringhash_helper (GConfClient *client,
 					g_hash_table_insert (*value, gconf_unescape_key (gc_key, -1), g_strdup (gc_str));
 			}
 		}
-		gconf_entry_free (entry);
+		gconf_entry_unref (entry);
 	}
 
 	g_slist_free (gconf_entries);
@@ -866,7 +866,7 @@ nm_gconf_set_stringhash_helper (GConfClient *client,
 		    && strcmp ((char *) basename, NM_SETTING_VPN_SERVICE_TYPE)
 			&& strcmp ((char *) basename, NM_SETTING_VPN_USER_NAME))
 			gconf_client_unset (client, entry->key, NULL);
-		gconf_entry_free (entry);
+		gconf_entry_unref (entry);
 		g_free (basename);
 	}
 	g_slist_free (existing);



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