diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-06-28 17:47:41 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-11-05 20:09:00 +0100 |
commit | a9c446afe262b7989bc17ef1f9ab19931db8dede (patch) | |
tree | 341b45137c0f94658b692a952b5345dc431f8308 /src/nautilus-column-utilities.c | |
parent | 0be00303f025ef212e517776c5b92199cc66096c (diff) | |
download | nautilus-a9c446afe262b7989bc17ef1f9ab19931db8dede.tar.gz |
Add favorite files
Add option to make files Favorite, by either toggling a star in the
list view, or from the context menu.
https://bugzilla.gnome.org/show_bug.cgi?id=786039
Diffstat (limited to 'src/nautilus-column-utilities.c')
-rw-r--r-- | src/nautilus-column-utilities.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nautilus-column-utilities.c b/src/nautilus-column-utilities.c index 1a2a0927c..22789938b 100644 --- a/src/nautilus-column-utilities.c +++ b/src/nautilus-column-utilities.c @@ -42,6 +42,7 @@ static const char *default_column_order[] = "date_modified", "date_accessed", "recency", + "favorite", NULL }; @@ -149,6 +150,16 @@ get_builtin_columns (void) "xalign", 1.0, NULL)); + columns = g_list_append (columns, + g_object_new (NAUTILUS_TYPE_COLUMN, + "name", "favorite", + "attribute", "favorite", + "label", _("Star"), + "description", _("Shows if file is favorite."), + "default-sort-order", GTK_SORT_DESCENDING, + "xalign", 0.5, + NULL)); + return columns; } |