[nautilus/wip/gbsneto/compile-warnings: 7/9] batch-rename-utilities: assign the directory to the correct type
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gbsneto/compile-warnings: 7/9] batch-rename-utilities: assign the directory to the correct type
- Date: Thu, 22 Sep 2016 20:14:38 +0000 (UTC)
commit 21dd0db8b62d81e0e4884f9d27cc9c2995f85a04
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Sep 22 14:11:50 2016 -0300
batch-rename-utilities: assign the directory to the correct type
The batch_rename_files_get_distinct_parents returns a list of
NautilusDirectory, but internally the directories are assigned to
a NautilusFile pointer. Looks like this is the only place where
this is wrong, and everywhere else the pointers are treated as
NautilusDirectory.
Fix that by assigning the correct type.
src/nautilus-batch-rename-utilities.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-batch-rename-utilities.c b/src/nautilus-batch-rename-utilities.c
index 09bea45..14b0dcb 100644
--- a/src/nautilus-batch-rename-utilities.c
+++ b/src/nautilus-batch-rename-utilities.c
@@ -1001,7 +1001,7 @@ batch_rename_files_get_distinct_parents (GList *selection)
GList *result;
GList *l1;
NautilusFile *file;
- NautilusFile *directory;
+ NautilusDirectory *directory;
NautilusFile *parent;
result = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]