Mercurial > geeqie
diff src/ui_tabcomp.c @ 726:a1dcef8cd1ae
Use G_DIR_SEPARATOR where applicable.
author | zas_ |
---|---|
date | Wed, 21 May 2008 11:07:23 +0000 |
parents | 9a145206ec2c |
children | e6ebae313d46 |
line wrap: on
line diff
--- a/src/ui_tabcomp.c Wed May 21 11:00:13 2008 +0000 +++ b/src/ui_tabcomp.c Wed May 21 11:07:23 2008 +0000 @@ -51,7 +51,7 @@ /* ---------------------------------------------------------------- Tab completion routines, can be connected to any gtkentry widget using the tab_completion_add_to_entry() function. - Use remove_trailing_slash() to strip the trailing '/'. + Use remove_trailing_slash() to strip the trailing G_DIR_SEPARATOR. ----------------------------------------------------------------*/ typedef struct _TabCompData TabCompData; @@ -821,7 +821,7 @@ if (!path) return NULL; l = strlen(path); - while (l > 1 && path[l - 1] == '/') l--; + while (l > 1 && path[l - 1] == G_DIR_SEPARATOR) l--; return g_strndup(path, l); }