Re: [Nautilus-list] snap-to-grid feature I'd like to write



hmm,

This seems a bit trickier than I expected.  What is the right way to
make the desktop icons move if just writing to the metadata file won't
work immediately?  Is there a way, or is that we I have to figure out?

Alex

On Thu, 2001-12-20 at 12:52, Darin Adler wrote:
> On 12/20/01 9:46 AM, "Alex Duggan" <alex openup com> wrote:
> 
> > Where are the positons of the user's desktop icons stored?
> 
> They are stored in metadata. You use calls from nautilus-file.h to read and
> write the metadata. The code for this is in fm-icon-view.c. The actual files
> on disk where the metadata gets stored for the desktop is the
> .nautilus-metadata.xml file in the desktop directory
> (~/.gnome-desktop/.nautilus-metafile.xml in the latest versions of
> Nautilus). But writing directly to that file is not a part of the solution
> for a snap to grid feature, because changing the file won't cause the icons
> to move unless you quit Nautilus and restart, and there's no shared-access
> protocol for that file to prevent Nautilus from overwriting changes made to
> it directly.
> 
> > How hard will this feature be to write?
> 
> I don't know. I tried at one point, and wasn't able to figure out all the
> details.
> 
> > I'm just looking to write a snap-to-grid for the desktop just like gmc has.
> 
> Maybe it will be easy.
> 
>     -- Darin
> 
> 
-- 
  ___  ____ ____       _____                      _____
 / _ \|  __|  _ \     
| /_\ | |_ | | | |     Alex Duggan
|  _  |  _|| | | |     alex openup com/aldug openup com
| | | | |  | |_| |     http://darthvader.astrolinux.com
|_| |_|_|  |____/      _____                      _____





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