Mercurial > geeqie
diff src/ui_pathsel.c @ 726:a1dcef8cd1ae
Use G_DIR_SEPARATOR where applicable.
author | zas_ |
---|---|
date | Wed, 21 May 2008 11:07:23 +0000 |
parents | eda074e91ddd |
children | 1698baa37871 |
line wrap: on
line diff
--- a/src/ui_pathsel.c Wed May 21 11:00:13 2008 +0000 +++ b/src/ui_pathsel.c Wed May 21 11:07:23 2008 +0000 @@ -184,7 +184,7 @@ && dir->d_name[0] == '.' && dir->d_name[1] == '\0') continue; if (dir->d_name[0] == '.' && dir->d_name[1] == '.' && dir->d_name[2] == '\0' - && pathl[0] == '/' && pathl[1] == '\0') + && pathl[0] == G_DIR_SEPARATOR && pathl[1] == '\0') continue; /* no .. for root directory */ if (dd->show_hidden || !is_hidden(dir->d_name)) { @@ -1207,7 +1207,7 @@ dd->filter = g_strdup(gtk_entry_get_text(GTK_ENTRY(GTK_BIN(dd->filter_combo)->child))); } - if (path && path[0] == '/' && isdir(path)) + if (path && path[0] == G_DIR_SEPARATOR && isdir(path)) { dest_populate(dd, path); }