Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
725:eda074e91ddd | 726:a1dcef8cd1ae |
---|---|
737 pi = work->data; | 737 pi = work->data; |
738 if ((pi->type == type || type == PAN_ITEM_NONE) && pi->fd) | 738 if ((pi->type == type || type == PAN_ITEM_NONE) && pi->fd) |
739 { | 739 { |
740 gint match = FALSE; | 740 gint match = FALSE; |
741 | 741 |
742 if (path[0] == '/') | 742 if (path[0] == G_DIR_SEPARATOR) |
743 { | 743 { |
744 if (pi->fd->path && strcmp(path, pi->fd->path) == 0) match = TRUE; | 744 if (pi->fd->path && strcmp(path, pi->fd->path) == 0) match = TRUE; |
745 } | 745 } |
746 else if (pi->fd->name) | 746 else if (pi->fd->name) |
747 { | 747 { |
783 gint ignore_case, gint partial) | 783 gint ignore_case, gint partial) |
784 { | 784 { |
785 GList *list = NULL; | 785 GList *list = NULL; |
786 | 786 |
787 if (!path) return NULL; | 787 if (!path) return NULL; |
788 if (partial && path[0] == '/') return NULL; | 788 if (partial && path[0] == G_DIR_SEPARATOR) return NULL; |
789 | 789 |
790 list = pan_item_find_by_path_l(list, pw->list_static, type, path, ignore_case, partial); | 790 list = pan_item_find_by_path_l(list, pw->list_static, type, path, ignore_case, partial); |
791 list = pan_item_find_by_path_l(list, pw->list, type, path, ignore_case, partial); | 791 list = pan_item_find_by_path_l(list, pw->list, type, path, ignore_case, partial); |
792 | 792 |
793 return g_list_reverse(list); | 793 return g_list_reverse(list); |