[glib/glib-2-32] resourcefile: Set display name



commit ad35c6cae1ad065bc46968b1169c18e624dd8ada
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 20 14:31:05 2012 +0200

    resourcefile: Set display name
    
    Fixes resource filenames not being printed in CSS warnings for GTK.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674345

 gio/gresourcefile.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gresourcefile.c b/gio/gresourcefile.c
index 20b6c64..82fe32f 100644
--- a/gio/gresourcefile.c
+++ b/gio/gresourcefile.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]