Commit ad35c6ca authored by Benjamin Otte's avatar Benjamin Otte

resourcefile: Set display name

Fixes resource filenames not being printed in CSS warnings for GTK.
parent 153cad89
...@@ -465,6 +465,7 @@ g_resource_file_query_info (GFile *file, ...@@ -465,6 +465,7 @@ g_resource_file_query_info (GFile *file,
info = g_file_info_new (); info = g_file_info_new ();
base = g_resource_file_get_basename (file); base = g_resource_file_get_basename (file);
g_file_info_set_name (info, base); g_file_info_set_name (info, base);
g_file_info_set_display_name (info, base);
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_ACCESS_CAN_READ, TRUE); _g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_ACCESS_CAN_READ, TRUE);
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_ACCESS_CAN_WRITE, FALSE); _g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_ACCESS_CAN_WRITE, FALSE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment