Re: multimedia columns in list view
- From: Cosimo Cecchi <cosimoc gnome org>
- To: yelo_3 <yelo_3 yahoo it>
- Cc: Christian Kirbach <christian kirbach googlemail com>, nautilus-list gnome org, "A. Walton" <awalton gnome org>
- Subject: Re: multimedia columns in list view
- Date: Fri, 20 Jun 2008 01:16:45 +0200
On Fri, 2008-06-20 at 01:00 +0200, yelo_3 wrote:
> Well I've understood that I must add columns in this way:
> nautilus_column_new(ID, ATTRIBUTE, LABEL, DESCRIPTION);
>
> what scares me is that ATTRIBUTE must be understood by
> get_string_attribute(NautilusFileInfo* file, const char* ATTRIBUTE)
> I see that there is a add_string_attribute(NautilusFileInfo *file,
> const char *attribute_name, const char *value)
> So it should be that someone must call this function when listing the
> files inside a directory. Where does this happen?
You can add custom attributes to files with the NautilusInfoProvider
interface.
I found this tutorial [1] which is outdated for some parts, but it's
still a good start for wrting Nautilus extensions, and it has an example
of creating a column listing custom attributes which should be exactly
what you are trying to do :)
[1]
http://taschenorakel.de/svn/repos/bulldozer/trunk/documentation/NautilusExtensions.html
--
Cosimo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]