comparison src/ui_pathsel.c @ 725:eda074e91ddd

Use G_DIR_SEPARATOR_S where applicable.
author zas_
date Wed, 21 May 2008 11:00:13 +0000
parents ab4162fa9209
children a1dcef8cd1ae
comparison
equal deleted inserted replaced
724:9973edfd86f6 725:eda074e91ddd
1212 dest_populate(dd, path); 1212 dest_populate(dd, path);
1213 } 1213 }
1214 else 1214 else
1215 { 1215 {
1216 gchar *buf = remove_level_from_path(path); 1216 gchar *buf = remove_level_from_path(path);
1217 if (buf && buf[0] == '/' && isdir(buf)) 1217 if (buf && buf[0] == G_DIR_SEPARATOR && isdir(buf))
1218 { 1218 {
1219 dest_populate(dd, buf); 1219 dest_populate(dd, buf);
1220 } 1220 }
1221 else 1221 else
1222 { 1222 {
1223 gint pos = -1; 1223 gint pos = -1;
1224 1224
1225 dest_populate(dd, (gchar *)homedir()); 1225 dest_populate(dd, (gchar *)homedir());
1226 if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), "/", -1, &pos); 1226 if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), G_DIR_SEPARATOR_S, -1, &pos);
1227 if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), path, -1, &pos); 1227 if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), path, -1, &pos);
1228 } 1228 }
1229 g_free(buf); 1229 g_free(buf);
1230 } 1230 }
1231 1231