Replace deprecated calls to g_basename and g_dirname with

g_path_get_(basename/dirname). From a patch by Kjartan Maraas,
a.k.a. THE MAN, bug #133174.
This commit is contained in:
Jacob Leach 2004-02-08 08:49:33 +00:00
parent b6d4dc7a76
commit fd4a762d01
4 changed files with 20 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-02-08 Kjartan Maraas <kmaraas@gnome.org>
* url-properties.c: Replace deprecated call to g_basename.
(#133174, Kjartan Maraas)
2004-01-14 Jody Goldberg <jody@gnome.org>
* Release 2.5.2

View file

@ -177,6 +177,7 @@ void url_capplet_refill_clist(void) {
GConfEntry *e = l->data;
gchar *key = g_strdup (e->key);
gchar *value = g_strdup (gconf_value_get_string (gconf_entry_get_value (e)));
gchar *filename = g_path_get_basename (key);
int len = strlen(key);
if (len > 5 && !strcmp(&key[len-5], "-show")) {
@ -184,7 +185,7 @@ void url_capplet_refill_clist(void) {
gint id;
/* it is a *-show key */
key[len-5] = '\0';
row[0] = g_basename (key);
row[0] = filename;
row[1] = value;
id = gtk_clist_append(GTK_CLIST(clist), row);
@ -193,6 +194,7 @@ void url_capplet_refill_clist(void) {
}
g_free(key);
g_free(value);
g_free(filename);
gconf_entry_free (e);
}
gtk_clist_thaw(GTK_CLIST(clist));