resourcefile: Set display name

Fixes resource filenames not being printed in CSS warnings for GTK.

https://bugzilla.gnome.org/show_bug.cgi?id=674345
This commit is contained in:
Benjamin Otte 2012-04-20 14:31:05 +02:00
parent 289e3b9143
commit b38f1c7aff

View File

@ -465,6 +465,7 @@ g_resource_file_query_info (GFile *file,
info = g_file_info_new ();
base = g_resource_file_get_basename (file);
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_WRITE, FALSE);