Mercurial > geeqie.yaz
comparison src/ui_pathsel.c @ 717:aae956e84de4
Use g_build_filename().
author | zas_ |
---|---|
date | Wed, 21 May 2008 00:42:14 +0000 |
parents | e07895754e65 |
children | ab4162fa9209 |
comparison
equal
deleted
inserted
replaced
716:c534b8cecc1f | 717:aae956e84de4 |
---|---|
187 && pathl[0] == '/' && pathl[1] == '\0') | 187 && pathl[0] == '/' && pathl[1] == '\0') |
188 continue; /* no .. for root directory */ | 188 continue; /* no .. for root directory */ |
189 if (dd->show_hidden || !is_hidden(dir->d_name)) | 189 if (dd->show_hidden || !is_hidden(dir->d_name)) |
190 { | 190 { |
191 gchar *name = dir->d_name; | 191 gchar *name = dir->d_name; |
192 gchar *filepath = g_strconcat(pathl, "/", name, NULL); | 192 gchar *filepath = g_build_filename(pathl, name, NULL); |
193 if (stat(filepath, &ent_sbuf) >= 0 && S_ISDIR(ent_sbuf.st_mode)) | 193 if (stat(filepath, &ent_sbuf) >= 0 && S_ISDIR(ent_sbuf.st_mode)) |
194 { | 194 { |
195 path_list = g_list_prepend(path_list, path_to_utf8(name)); | 195 path_list = g_list_prepend(path_list, path_to_utf8(name)); |
196 } | 196 } |
197 else if (dd->f_view) | 197 else if (dd->f_view) |