summaryrefslogtreecommitdiff
path: root/src/nautilus-file-undo-operations.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2018-02-07 17:25:35 +0100
committerCarlos Soriano <csoriano@gnome.org>2018-02-08 14:41:01 +0100
commite2caa9c9c85c3c8cd0e7585c4e2ea3063a1f5f10 (patch)
tree2d4f1b7088e48910cdfa4bf8e7a77e06504ad343 /src/nautilus-file-undo-operations.c
parentc77ca0051d92db931baf7bf80596c264e5be0c97 (diff)
downloadnautilus-e2caa9c9c85c3c8cd0e7585c4e2ea3063a1f5f10.tar.gz
window: Do in-app notification for unstarring
When unstarring a file in the starred view the file disappear from the view immediately, with no visual clue how to get it back in case of accident. This leads to confusion and is generally bad UX. To fix it, implement an in-app notification for unstarring when doing it inside the starred view. The commit has also some clean ups, and makes sure it removes all notifications before displaying another one. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/239
Diffstat (limited to 'src/nautilus-file-undo-operations.c')
-rw-r--r--src/nautilus-file-undo-operations.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nautilus-file-undo-operations.c b/src/nautilus-file-undo-operations.c
index 73ad6ff05..0bb11027b 100644
--- a/src/nautilus-file-undo-operations.c
+++ b/src/nautilus-file-undo-operations.c
@@ -1504,6 +1504,18 @@ nautilus_file_undo_info_favorites_class_init (NautilusFileUndoInfoFavoritesClass
}
+GList *
+nautilus_file_undo_info_favorites_get_files (NautilusFileUndoInfoFavorites *self)
+{
+ return self->priv->files;
+}
+
+gboolean
+nautilus_file_undo_info_favorites_is_favorited (NautilusFileUndoInfoFavorites *self)
+{
+ return self->priv->starred;
+}
+
NautilusFileUndoInfo *
nautilus_file_undo_info_favorites_new (GList *files,
gboolean starred)