Re: Assigning icons to default folders in a users Home directory



В Сбт, 24/01/2009 в 14:44 -0800, Daniel Fore пишет:
> Hi,
> 
> My name is Daniel Fore. I'm one of the developers working on the
> elementary project and elementary OS in particular.
> 
> There a few distros out there now that are shipping default with a few
> standard directories in a user's home folder. for example: Music,
> Pictures, Videos, Downloads, etc.
> 
> I'm wondering why nautilus doesn't assign icons to those folders in
> the same way it assigns a different icon the the ~/Desktop folder.
> 
> A lot of icon sets (including elementary icons) ship with custom
> folder icons already, so it's not like the artwork doesn't exist.
> 
> As far as the naming spec goes, it would follow that the folders would
> be called something like user-music, user-pictures, etc. So I don't
> see a major problem on that front either.
> 
> Is this something that's a really difficult thing to do, or could it
> easily be adapted from the same code I mentioned earlier that
> ~/Desktop possesses?
> 
> Thanks
> --

Hey Daniel

Yes, you can do this the same way. But it's not about nautilus, the same
must work in gtk dialog for example. Look at glib/gio/glocalfileinfo.c
function

_g_local_file_info_get

The issue can be probably in interaction of user dirs (which are stored
in GNOME structures) and glib. Probably it will require you to build a
module that will modify glib behavior.

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



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