From 52e49aee357e700f44cfb62912975dca6bd1bb20 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 11 Feb 2008 10:41:00 +0000 Subject: [PATCH] Added new standard::description attribute. Requested by Vincent, and 2008-02-11 Alexander Larsson * gfileinfo.h: Added new standard::description attribute. Requested by Vincent, and useful for both panel and nautilus svn path=/trunk/; revision=6496 --- gio/ChangeLog | 7 +++++++ gio/gfileinfo.h | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index 15a30659..40ec1875 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,10 @@ +2008-02-11 Alexander Larsson + + * gfileinfo.h: + Added new standard::description attribute. + Requested by Vincent, and useful for both + panel and nautilus + 2008-02-11 Alexander Larsson * gdesktopappinfo.c: diff --git a/gio/gfileinfo.h b/gio/gfileinfo.h index be59ad6b..f9a5fcba 100644 --- a/gio/gfileinfo.h +++ b/gio/gfileinfo.h @@ -173,6 +173,20 @@ typedef enum { **/ #define G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "standard::copy-name" /* string */ +/** + * G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: + * + * A key in the "standard" namespace for getting the description of the file. + * The description is a utf8 string that describes the file, generally containing + * the filename, but can also contain furter information. Example descriptions + * could be "filename (on hostname)" for a remote file or "filename (in trash)" + * for a file in the trash. This is useful for instance as the window title + * when displaying a directory or for a bookmarks menu. + * + * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING. + **/ +#define G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION "standard::description" /* string */ + /** * G_FILE_ATTRIBUTE_STANDARD_ICON: * -- 2.34.1