diff src/pan-item.c @ 726:a1dcef8cd1ae

Use G_DIR_SEPARATOR where applicable.
author zas_
date Wed, 21 May 2008 11:07:23 +0000
parents 48c8e49b571c
children d6a7fb4b8e7c
line wrap: on
line diff
--- a/src/pan-item.c	Wed May 21 11:00:13 2008 +0000
+++ b/src/pan-item.c	Wed May 21 11:07:23 2008 +0000
@@ -739,7 +739,7 @@
 			{
 			gint match = FALSE;
 
-			if (path[0] == '/')
+			if (path[0] == G_DIR_SEPARATOR)
 				{
 				if (pi->fd->path && strcmp(path, pi->fd->path) == 0) match = TRUE;
 				}
@@ -785,7 +785,7 @@
 	GList *list = NULL;
 
 	if (!path) return NULL;
-	if (partial && path[0] == '/') return NULL;
+	if (partial && path[0] == G_DIR_SEPARATOR) return NULL;
 
 	list = pan_item_find_by_path_l(list, pw->list_static, type, path, ignore_case, partial);
 	list = pan_item_find_by_path_l(list, pw->list, type, path, ignore_case, partial);