If I'm putting things together right, then Nautilus depends on whether
the icon it's using for the text file to determine whether to display
preview text or not. The area for text previews is listed in a file with
the icon's name and the '.icon' extension (ie. 'gtk-file.icon' for the
icon 'gtk-file.png', etc.) in the same directory as the icon. It's
determined with the option EmbeddedTextRectangle under [Icon Data]; I'm
pretty sure the syntax is 'EmbeddedTextRectangle=x1,y1,x2,y2' defining
the top left and bottom right corners of a rectangle, and 0 <=
x1,x2,y1,y2 <= 1000.

Hypothetically you should be able to disable text file previews for
specific mimetypes by removing that option from the icon for that
mimetype. I doubt this will actually solve your problem, but you never
know.

Brian

On Thu, 2009-08-06 at 08:52 -0700, Bryan Pham wrote:
> I understood that we can disable for the entire system.  What I was
> hoping for is a way to disable this on a per file basis (or directory
> for that matter) via libnautilus extension.  If I write a patch for
> this would anybody be interested ?
> 
> Best,
> Bryan
> 
> 
> On Thu, Aug 6, 2009 at 1:13 AM, A. Walton <awal...@gnome.org> wrote:
>         
>         On Thu, Aug 6, 2009 at 3:25 AM, Bryan Pham<br...@zecter.com>
>         wrote:
>         > Hi.
>         >
>         > I was wondering if there's a way to turn off the top left
>         text generation
>         > for nautilus.  I dont want to disable the entire flow only
>         on certain files.
>         
>         
>         Previews tab under File Management properties, under the Text
>         Files
>         header, turn "Show text in thumbnails" off. There's no way to
>         turn it
>         off for some text files and not others; it's all or nothing.
>         
>         -A. Walton
>         
>         >
>         > Best,
>         > Bryan
>         >
>         > --
>         > nautilus-list mailing list
>         > nautilus-list@gnome.org
>         > http://mail.gnome.org/mailman/listinfo/nautilus-list
>         >
> 
> --
> nautilus-list mailing list
> nautilus-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/nautilus-list

--
nautilus-list mailing list
nautilus-list@gnome.org
http://mail.gnome.org/mailman/listinfo/nautilus-list

Reply via email to