[Nautilus-list] Re: eel-font-manager patch



Please send patches for eel to the nautilus mailing list in the future. 
Thanks.

I checked in a modified version of your patch, or-ing (|) the bits
instead of adding them.

-re

Frederic Devernay wrote:
> 
> Hello,
> 
> eel should follow symlinks to get mime types.
> on my installation (I use the encap package management system from
> CMU), everything is installed as a symlink.
> 
> Best Regards,
> Fred
> 
> --- eel/eel-font-manager.c~     Mon Jun  4 17:39:36 2001
> +++ eel/eel-font-manager.c      Wed Jun  6 12:02:33 2001
> @@ -681,7 +681,8 @@
> 
>         result = gnome_vfs_directory_open (&directory,
>                                            directory_uri,
> -                                          GNOME_VFS_FILE_INFO_GET_MIME_TYPE,
> +                                          GNOME_VFS_FILE_INFO_GET_MIME_TYPE
> +                                          +GNOME_VFS_FILE_INFO_FOLLOW_LINKS,
>                                            NULL);
>         g_free (directory_uri);
> 
> @@ -1268,7 +1269,7 @@
>         uri = gnome_vfs_get_uri_from_local_path (file_name);
> 
>         info = gnome_vfs_file_info_new ();
> -       result = gnome_vfs_get_file_info (uri, info, GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
> +       result = gnome_vfs_get_file_info (uri, info, GNOME_VFS_FILE_INFO_GET_MIME_TYPE+GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
> 
>         if (result == GNOME_VFS_OK) {
>                 is_scalable_font =




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