Lines Matching refs:file1
83 GFile *file1 = NULL; in compare_two_files() local
89 file1 = g_file_new_for_uri (path1); in compare_two_files()
94 file1 = g_file_new_for_path (path1); in compare_two_files()
98 g_assert (file1 != NULL); in compare_two_files()
101 equal = g_file_equal (file1, file2); in compare_two_files()
103 g_object_unref (file1); in compare_two_files()
173 GFile *file1 = NULL; in dup_equals() local
178 file1 = g_file_new_for_uri (path); in dup_equals()
180 file1 = g_file_new_for_path (path); in dup_equals()
182 g_assert (file1 != NULL); in dup_equals()
184 file2 = g_file_dup (file1); in dup_equals()
188 equal = g_file_equal (file1, file2); in dup_equals()
190 g_object_unref (file1); in dup_equals()
221 GFile *file1 = NULL; in parse_check_utf8() local
228 file1 = g_file_new_for_uri (path); in parse_check_utf8()
230 file1 = g_file_new_for_path (path); in parse_check_utf8()
232 g_assert (file1 != NULL); in parse_check_utf8()
234 parsed_name = g_file_get_parse_name (file1); in parse_check_utf8()
249 equal = g_file_equal (file1, file2); in parse_check_utf8()
251 g_object_unref (file1); in parse_check_utf8()
282 GFile *file1 = NULL; in resolve_arg() local
287 file1 = g_file_new_for_commandline_arg (arg); in resolve_arg()
288 g_assert (file1 != NULL); in resolve_arg()
291 uri = g_file_get_uri (file1); in resolve_arg()
296 path = g_file_get_path (file1); in resolve_arg()
303 s = g_file_get_uri_scheme (file1); in resolve_arg()
305 g_object_unref (file1); in resolve_arg()
353 GFile *file1 = NULL; in get_relative_path() local
361 file1 = g_file_new_for_uri (dir1); in get_relative_path()
366 file1 = g_file_new_for_path (dir1); in get_relative_path()
370 g_assert (file1 != NULL); in get_relative_path()
373 has_prefix = g_file_has_prefix (file2, file1); in get_relative_path()
377 relative_path = g_file_get_relative_path (file1, file2); in get_relative_path()
382 file3 = g_file_resolve_relative_path (file1, relative_path); in get_relative_path()
386 if (file1) in get_relative_path()
387 g_object_unref (file1); in get_relative_path()