cleanup
[platform/upstream/glib.git] / gio / glocalfileenumerator.c
index f24db15..60c9b9a 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  * Author: Alexander Larsson <alexl@redhat.com>
  */
@@ -254,7 +252,8 @@ _g_local_file_enumerator_new (GLocalFile *file,
   local->matcher = g_file_attribute_matcher_new (attributes);
 #ifndef USE_GDIR
   local->reduced_matcher = g_file_attribute_matcher_subtract_attributes (local->matcher,
-                                                                         "standard::type,standard::name");
+                                                                         G_LOCAL_FILE_INFO_NOSTAT_ATTRIBUTES","
+                                                                         "standard::type");
 #endif
   local->flags = flags;
   
@@ -408,7 +407,7 @@ g_local_file_enumerator_next_file (GFileEnumerator  *enumerator,
                                      &my_error); 
       if (info)
         {
-          g_file_info_set_name (info, filename);
+          _g_local_file_info_get_nostat (info, filename, path, local->matcher);
           g_file_info_set_file_type (info, file_type);
           if (file_type == G_FILE_TYPE_SYMBOLIC_LINK)
             g_file_info_set_is_symlink (info, TRUE);