Skip to content

Commit

Permalink
Use simpler function calls for getting attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
konsolebox committed Aug 5, 2016
1 parent 97e7f17 commit b76b58a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -1627,12 +1627,9 @@ void document_open_files_recursively(const GSList *filenames, gboolean readonly,

if (filename)
{
filter_info.filename = g_file_info_get_attribute_byte_string(file_info,
G_FILE_ATTRIBUTE_STANDARD_NAME);
filter_info.display_name = g_file_info_get_attribute_string(file_info,
G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
filter_info.mime_type = g_file_info_get_attribute_string(file_info,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
filter_info.filename = g_file_info_get_name(file_info);
filter_info.display_name = g_file_info_get_display_name(file_info);
filter_info.mime_type = g_file_info_get_content_type(file_info);

if (gtk_file_filter_filter(filter, &filter_info))
document_open_file(filename, readonly, ft, forced_enc);
Expand Down

0 comments on commit b76b58a

Please sign in to comment.